github.com/scottcagno/storage@v1.8.0/pkg/util/lowerlevellibs/bytealloc/rawalloc/rawalloc_gccgo.go (about)

     1  //go:build gccgo
     2  // +build gccgo
     3  
     4  package rawalloc
     5  
     6  import "unsafe"
     7  
     8  //extern runtime.mallocgc
     9  //func mallocgc(size uintptr, typ unsafe.Pointer, needzero bool) unsafe.Pointer
    10  
    11  //go:linkname mallocgc runtime.mallocgc
    12  func mallocgc(size uintptr, typ unsafe.Pointer, needzero bool) unsafe.Pointer