]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix 'go vet -race runtime'
authorRuss Cox <rsc@golang.org>
Wed, 15 May 2019 19:21:00 +0000 (15:21 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 16 May 2019 03:24:54 +0000 (03:24 +0000)
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>
src/runtime/race.go

index adb2198c55470b82649a76a929d365335506f71a..c41e1ba22276456ffc87f5c5f07407833c719988 100644 (file)
@@ -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