ziggs/vendor/go4.org/unsafe/assume-no-moving-gc
2022-08-29 23:04:48 -07:00
..
assume-no-moving-gc.go Sweet, this is overengineered already 2022-07-08 05:37:21 -07:00
LICENSE Sweet, this is overengineered already 2022-07-08 05:37:21 -07:00
README.md Sweet, this is overengineered already 2022-07-08 05:37:21 -07:00
untested.go Add CPU load based light changes 2022-08-29 23:04:48 -07:00

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.