Registry / utility / unsafe-assume-no-moving-gc

unsafe-assume-no-moving-gc

JSON →
library0.0.0-20231121144256-b99613f794b6gogounverified

Package assume-no-moving-gc asserts that the Go runtime does not use a moving garbage collector, for unsafe code that depends on heap-address stability.

go get go4.org/unsafe/assume-no-moving-gc
INSTALL
IMPORT
SIG · UNSAFE-ASSUME-NO-M
U
unsafe-assume-no-moving-gc
utilitygov0.0.0-20231121144256-b99613f794b6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assume_no_moving_gc
go4.org/unsafe/assume-no-moving-gc

Imports the package to enforce the no-moving-GC assumption.

package main import ( _ "go4.org/unsafe/assume-no-moving-gc" ) func main() { // No API; import ensures assumption is checked at runtime. }
Debug
Known issues
breakingThis package will panic at runtime if the Go runtime uses a moving GC.
fix
Update to the latest version or remove the import if moving GC is supported.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20231121144256-b99613f794b6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
unsafe-assume-no-moving-gc — go get unsafe-assume-no-moving-gc · libregistry