Debian Codegraph @

/

debian golang-go4-unsafe-assume-no-moving-gc 0.0~git20231121.b99613f-2debian golang-go4-unsafe-assume-no-moving-gc-dev debiangoinimakefilemarkdownshellyaml 15 files · 45 symbols
View dependency graph

Depends on

README (full)

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

If your Go package wants to declare that it plays unsafe games that only work if the Go runtime's garbage collector is not a moving collector, then add:

import _ "go4.org/unsafe/assume-no-moving-gc"

Then your program will explode if that's no longer the case. (Users can override the explosion with a scary sounding environment variable.)

This also gives us a way to find all the really gross unsafe packages.

dir debian/
file LICENSE
file README.md
file assume-no-moving-gc.go
file assume-no-moving-gc_test.go
file check.go
file go.mod