github.com/fjl/memsize@v0.0.2/runtimefunc.go (about)

     1  package memsize
     2  
     3  import "unsafe"
     4  
     5  var _ = unsafe.Pointer(nil)
     6  
     7  //go:linkname startTheWorld runtime.startTheWorld
     8  func startTheWorld()
     9  
    10  //go:linkname chanbuf runtime.chanbuf
    11  func chanbuf(ch unsafe.Pointer, i uint) unsafe.Pointer