diff options
Diffstat (limited to 'src/pkg/runtime/race0.go')
| -rw-r--r-- | src/pkg/runtime/race0.go | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/pkg/runtime/race0.go b/src/pkg/runtime/race0.go index 2e67ae6a50..5d90cc859a 100644 --- a/src/pkg/runtime/race0.go +++ b/src/pkg/runtime/race0.go @@ -14,7 +14,24 @@ import ( const raceenabled = false -func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { -} -func raceWriteObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { -} +// Because raceenabled is false, none of these functions should be called. + +func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { gothrow("race") } +func raceWriteObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { gothrow("race") } +func raceinit() { gothrow("race") } +func racefini() { gothrow("race") } +func racemapshadow(addr unsafe.Pointer, size uintptr) { gothrow("race") } +func racewritepc(addr unsafe.Pointer, callerpc, pc uintptr) { gothrow("race") } +func racereadpc(addr unsafe.Pointer, callerpc, pc uintptr) { gothrow("race") } +func racereadrangepc(addr unsafe.Pointer, sz, callerpc, pc uintptr) { gothrow("race") } +func racewriterangepc(addr unsafe.Pointer, sz, callerpc, pc uintptr) { gothrow("race") } +func raceacquire(addr unsafe.Pointer) { gothrow("race") } +func raceacquireg(gp *g, addr unsafe.Pointer) { gothrow("race") } +func racerelease(addr unsafe.Pointer) { gothrow("race") } +func racereleaseg(gp *g, addr unsafe.Pointer) { gothrow("race") } +func racereleasemerge(addr unsafe.Pointer) { gothrow("race") } +func racereleasemergeg(gp *g, addr unsafe.Pointer) { gothrow("race") } +func racefingo() { gothrow("race") } +func racemalloc(p unsafe.Pointer, sz uintptr) { gothrow("race") } +func racegostart(pc uintptr) uintptr { gothrow("race"); return 0 } +func racegoend() { gothrow("race") } |
