github.com/fjl/memsize@v0.0.2/runtimefunc_go120.go (about) 1 //go:build !go1.21 2 // +build !go1.21 3 4 package memsize 5 6 import "unsafe" 7 8 var _ = unsafe.Pointer(nil) 9 10 const stwReadMemStats string = "memsize scan" 11 12 //go:linkname stopTheWorld runtime.stopTheWorld 13 func stopTheWorld(reason string)