diff options
Diffstat (limited to 'libgo/go/sync/race.go')
-rw-r--r-- | libgo/go/sync/race.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/go/sync/race.go b/libgo/go/sync/race.go index d9431af6ffb..fd0277dcc95 100644 --- a/libgo/go/sync/race.go +++ b/libgo/go/sync/race.go @@ -32,3 +32,11 @@ func raceDisable() { func raceEnable() { runtime.RaceEnable() } + +func raceRead(addr unsafe.Pointer) { + runtime.RaceRead(addr) +} + +func raceWrite(addr unsafe.Pointer) { + runtime.RaceWrite(addr) +} |