Documentation
¶
Overview ¶
Package go4.org/unsafe/assume-no-moving-gc exists so you can depend on it from unsafe code that wants to declare that it assumes that the Go runtime does not using a moving garbage colllector.
This package is then updated for new Go versions when that is still the case and explodes at runtime with a failure otherwise, unless an environment variable overrides it.
To use:
import _ "go4.org/unsafe/assume-no-moving-gc"
There is no API.
The GitHub repo is at https://github.com/go4org/unsafe-assume-no-moving-gc