race

package standard library
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: None detected not legal advice Imports: 0 Imported by: 0

Documentation

Overview

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.

Index

Constants

View Source
const Enabled = false

Variables

This section is empty.

Functions

func Acquire

func Acquire(addr unsafe.Pointer)

func Disable

func Disable()

func Enable

func Enable()

func Errors

func Errors() int

func Read

func Read(addr unsafe.Pointer)

func ReadObjectPC

func ReadObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr)

func ReadPC

func ReadPC(addr unsafe.Pointer, callerpc, pc uintptr)

func ReadRange

func ReadRange(addr unsafe.Pointer, len int)

func Release

func Release(addr unsafe.Pointer)

func ReleaseMerge

func ReleaseMerge(addr unsafe.Pointer)

func Write

func Write(addr unsafe.Pointer)

func WriteObjectPC

func WriteObjectPC(t *abi.Type, addr unsafe.Pointer, callerpc, pc uintptr)

func WritePC

func WritePC(addr unsafe.Pointer, callerpc, pc uintptr)

func WriteRange

func WriteRange(addr unsafe.Pointer, len int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL