diff options
Diffstat (limited to 'src/sync/pool.go')
| -rw-r--r-- | src/sync/pool.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sync/pool.go b/src/sync/pool.go index 9214bf6e34..881cd1f4c2 100644 --- a/src/sync/pool.go +++ b/src/sync/pool.go @@ -242,6 +242,15 @@ func (p *Pool) pinSlow() (*poolLocal, int) { return &local[pid], pid } +// poolCleanup should be an internal detail, +// but widely used packages access it using linkname. +// Notable members of the hall of shame include: +// - github.com/bytedance/gopkg +// +// Do not remove or change the type signature. +// See go.dev/issue/67401. +// +//go:linkname poolCleanup func poolCleanup() { // This function is called with the world stopped, at the beginning of a garbage collection. // It must not allocate and probably should not call any runtime functions. |
