go4.org/unsafe/assume-no-moving-gc@v0.0.0-20231121144256-b99613f794b6/README.md (about)

     1  # go4.org/unsafe/assume-no-moving-gc
     2  
     3  If your Go package wants to declare that it plays `unsafe` games that only
     4  work if the Go runtime's garbage collector is not a moving collector, then add:
     5  
     6  ```go
     7  import _ "go4.org/unsafe/assume-no-moving-gc"
     8  ```
     9  
    10  Then your program will explode if that's no longer the case. (Users can override
    11  the explosion with a scary sounding environment variable.)
    12  
    13  This also gives us a way to find all the really gross unsafe packages.