package race

Import Path
	internal/race (on go.dev)

Dependency Relation
	imports 2 packages, and imported by 7 packages

Involved Source Files Package race contains helper functions for manually instrumenting code for the race detector. The runtime package intentionally exports these functions only in the race build; this package exports them unconditionally but without the "race" build tag they are no-ops. norace.go
Package-Level Functions (total 14)
func Acquire(addr unsafe.Pointer)
func Disable()
func Enable()
func Errors() int
func Read(addr unsafe.Pointer)
func ReadObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr)
func ReadPC(addr unsafe.Pointer, callerpc, pc uintptr)
func ReadRange(addr unsafe.Pointer, len int)
func Release(addr unsafe.Pointer)
func Write(addr unsafe.Pointer)
func WriteObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr)
func WritePC(addr unsafe.Pointer, callerpc, pc uintptr)
func WriteRange(addr unsafe.Pointer, len int)
Package-Level Constants (only one)
const Enabled = false