- Sort Score
- Result 10 results
- Languages All
Results 21 - 22 of 22 for sysAlloc (0.07 sec)
-
src/runtime/export_test.go
testSysStat.add(-int64(p.summaryMappedReady)) // Free the mapped space for chunks. for i := range p.chunks { if x := p.chunks[i]; x != nil { p.chunks[i] = nil // This memory comes from sysAlloc and will always be page-aligned. sysFree(unsafe.Pointer(x), unsafe.Sizeof(*p.chunks[0]), testSysStat) } } } // BaseChunkIdx is a convenient chunkIdx value which works on both
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/runtime/mprof.go
bh := (*buckhashArray)(buckhash.Load()) if bh == nil { lock(&profInsertLock) // check again under the lock bh = (*buckhashArray)(buckhash.Load()) if bh == nil { bh = (*buckhashArray)(sysAlloc(unsafe.Sizeof(buckhashArray{}), &memstats.buckhash_sys)) if bh == nil { throw("runtime: cannot allocate memory") } buckhash.StoreNoWB(unsafe.Pointer(bh)) } unlock(&profInsertLock) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0)