auth/vendor/go4.org/unsafe/assume-no-moving-gc
Maxim Lebedev 91c17a2afa
📌 Upgraded and vendored go modules
2023-07-05 15:38:02 +06:00
..
LICENSE 📌 Vendored dependencies 2022-06-09 22:35:23 +05:00
README.md 📌 Vendored dependencies 2022-06-09 22:35:23 +05:00
assume-no-moving-gc.go 📌 Upgraded and vendored go modules 2023-07-05 15:38:02 +06:00
check.go 📌 Upgraded and vendored go modules 2023-07-05 15:38:02 +06:00

README.md

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.