diff options
author | Russ Cox <rsc@golang.org> | 2019-05-15 15:21:00 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2019-05-16 03:24:54 +0000 |
commit | 639ac76d453073da49a6a1d89b957cfa1bfef1af (patch) | |
tree | a57556d5e6c048dda420173eb82d1168a0bbb727 /src/runtime/race.go | |
parent | 14491a2ec499668388d7fe7e95b84dbf0e1cf04d (diff) | |
download | go-639ac76d453073da49a6a1d89b957cfa1bfef1af.tar.gz go-639ac76d453073da49a6a1d89b957cfa1bfef1af.zip |
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 <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/race.go')
-rw-r--r-- | src/runtime/race.go | 14 |
1 files changed, 7 insertions, 7 deletions
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 |