race2

package
v0.0.0-...-5ca2806 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package race2 exposes race detector API such that some assembly code can be manually instrumented for race detector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(addr unsafe.Pointer)

Read marks addr as being read for the race detector.

func ReadRange

func ReadRange(addr unsafe.Pointer, len int)

ReadRange marks [addr:addr+len] as being read for the race detector.

func ReadSlice

func ReadSlice[T any](data []T)

ReadSlice marks data slice as being read for the race detector.

func Write

func Write(addr unsafe.Pointer)

Write marks addr as being written to for the race detector.

func WriteRange

func WriteRange(addr unsafe.Pointer, len int)

WriteRange marks [addr:addr+len] as being written to for the race detector.

func WriteSlice

func WriteSlice[T any](data []T)

WriteSlice marks [addr:addr+len] as being written to for the race detector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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