- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for profilealloc (0.22 sec)
-
src/runtime/malloc.go
//go:linkname reflect_unsafe_NewArray reflect.unsafe_NewArray func reflect_unsafe_NewArray(typ *_type, n int) unsafe.Pointer { return newarray(typ, n) } func profilealloc(mp *m, x unsafe.Pointer, size uintptr) { c := getMCache(mp) if c == nil { throw("profilealloc called without a P or outside bootstrapping") } c.nextSample = nextSample() mProf_Malloc(mp, x, size) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 59.6K bytes - Viewed (0) -
src/runtime/arena.go
} // Note cache c only valid while m acquired; see #47302 if rate != 1 && userArenaChunkBytes < c.nextSample { c.nextSample -= userArenaChunkBytes } else { profilealloc(mp, unsafe.Pointer(span.base()), userArenaChunkBytes) } } mp.mallocing = 0 releasem(mp) // Again, because this chunk counts toward heapLive, potentially trigger a GC.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0)