- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for allocManual (0.22 sec)
-
src/runtime/mheap.go
if !isSweepDone() { h.reclaim(npages) } s = h.allocSpan(npages, spanAllocHeap, spanclass) }) return s } // allocManual allocates a manually-managed span of npage pages. // allocManual returns nil if allocation fails. // // allocManual adds the bytes used to *stat, which should be a // memstats in-use field. Unlike allocations in the GC'd heap, the // allocation does *not* count toward heapInUse.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
src/runtime/stack.go
list := &stackpool[order].item.span s := list.first lockWithRankMayAcquire(&mheap_.lock, lockRankMheap) if s == nil { // no free stacks. Allocate another span worth. s = mheap_.allocManual(_StackCacheSize>>_PageShift, spanAllocStack) if s == nil { throw("out of memory") } if s.allocCount != 0 { throw("bad allocCount") } if s.manualFreeList.ptr() != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 41.1K bytes - Viewed (0) -
src/runtime/mbitmap.go
spaceNeeded += alignUp(typ.PtrBytes/goarch.PtrSize/8, goarch.PtrSize) npages := alignUp(spaceNeeded, pageSize) / pageSize var progSpan *mspan systemstack(func() { progSpan = mheap_.allocManual(npages, spanAllocPtrScalarBits) memclrNoHeapPointers(unsafe.Pointer(progSpan.base()), progSpan.npages*pageSize) }) // Write a dummy _type in the new space. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0)