1
2
3
4
5
6
7 package race
8
9 import (
10 "internal/abi"
11 "unsafe"
12 )
13
14 const Enabled = true
15
16
17
18
19 func Acquire(addr unsafe.Pointer)
20
21
22 func Release(addr unsafe.Pointer)
23
24
25 func ReleaseMerge(addr unsafe.Pointer)
26
27
28 func Disable()
29
30
31 func Enable()
32
33
34 func Read(addr unsafe.Pointer)
35
36
37 func ReadPC(addr unsafe.Pointer, callerpc, pc uintptr)
38
39
40 func ReadObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr)
41
42
43 func Write(addr unsafe.Pointer)
44
45
46 func WritePC(addr unsafe.Pointer, callerpc, pc uintptr)
47
48
49 func WriteObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr)
50
51
52 func ReadRange(addr unsafe.Pointer, len int)
53
54
55 func WriteRange(addr unsafe.Pointer, len int)
56
57
58 func Errors() int
59
View as plain text