File: README.md

package info (click to toggle)
golang-go4-unsafe-assume-no-moving-gc 0.0~git20231121.b99613f-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 84 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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:

```go
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.