From: Russ Cox Date: Wed, 15 May 2019 19:21:00 +0000 (-0400) Subject: runtime: fix 'go vet -race runtime' X-Git-Tag: go1.13beta1~286 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=639ac76d453073da49a6a1d89b957cfa1bfef1af;p=gostls13.git runtime: fix 'go vet -race runtime' This updates the Go function declarations to match race_amd64.s. Change-Id: I2b541a6b335ce732f4c31652aa615240ce7bb1c3 Reviewed-on: https://go-review.googlesource.com/c/go/+/177397 Run-TryBot: Russ Cox TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick Reviewed-by: Austin Clements --- diff --git a/src/runtime/race.go b/src/runtime/race.go index adb2198c55..c41e1ba222 100644 --- a/src/runtime/race.go +++ b/src/runtime/race.go @@ -291,20 +291,20 @@ var racedataend uintptr var racearenastart uintptr var racearenaend uintptr -func racefuncenter(uintptr) -func racefuncenterfp() +func racefuncenter(callpc uintptr) +func racefuncenterfp(fp uintptr) func racefuncexit() -func raceread(uintptr) -func racewrite(uintptr) +func raceread(addr uintptr) +func racewrite(addr uintptr) func racereadrange(addr, size uintptr) func racewriterange(addr, size uintptr) -func racereadrangepc1(uintptr, uintptr, uintptr) -func racewriterangepc1(uintptr, uintptr, uintptr) +func racereadrangepc1(addr, size, pc uintptr) +func racewriterangepc1(addr, size, pc uintptr) func racecallbackthunk(uintptr) // racecall allows calling an arbitrary function f from C race runtime // with up to 4 uintptr arguments. -func racecall(*byte, uintptr, uintptr, uintptr, uintptr) +func racecall(fn *byte, arg0, arg1, arg2, arg3 uintptr) // checks if the address has shadow (i.e. heap or data/bss) //go:nosplit