Lines Matching defs:fixalloc
31 type fixalloc struct { struct
32 size uintptr
33 first func(arg, p unsafe.Pointer) // called first time p is returned
34 arg unsafe.Pointer
35 list *mlink
36 chunk uintptr // use uintptr instead of unsafe.Pointer to avoid write barriers
37 nchunk uint32 // bytes remaining in current chunk
38 nalloc uint32 // size of new chunks in bytes
39 inuse uintptr // in-use bytes now
40 stat *sysMemStat
41 zero bool // zero allocations
56 …lloc) init(size uintptr, first func(arg, p unsafe.Pointer), arg unsafe.Pointer, stat *sysMemStat) {
74 func (f *fixalloc) alloc() unsafe.Pointer {
104 func (f *fixalloc) free(p unsafe.Pointer) {