- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for allocSpan (0.17 sec)
-
src/runtime/mheap.go
// the heap. h.spanalloc.free(unsafe.Pointer(s)) } // allocSpan allocates an mspan which owns npages worth of memory. // // If typ.manual() == false, allocSpan allocates a heap span of class spanclass // and updates heap accounting. If manual == true, allocSpan allocates a // manually-managed span (spanclass is ignored), and the caller is
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/mgclimit.go
limiterEventMarkAssist // Refers to mark assist (see gcAssistAlloc). limiterEventScavengeAssist // Refers to a scavenge assist (see allocSpan). limiterEventIdle // Refers to time a P spent on the idle list. limiterEventBits = 3 ) // limiterEventTypeMask is a mask for the bits in p.limiterEventStart that represent
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 17.3K bytes - Viewed (0) -
src/runtime/gc_test.go
runtime.GC() runtime.GC() b.StopTimer() } close(teardown) } func BenchmarkMSpanCountAlloc(b *testing.B) { // Allocate one dummy mspan for the whole benchmark. s := runtime.AllocMSpan() defer runtime.FreeMSpan(s) // n is the number of bytes to benchmark against. // n must always be a multiple of 8, since gcBits is // always rounded up 8 bytes. for _, n := range []int{8, 16, 32, 64, 128} {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
src/runtime/export_test.go
if s != nil { releaseSudog(s) return true } return false } // mspan wrapper for testing. type MSpan mspan // Allocate an mspan for testing. func AllocMSpan() *MSpan { var s *mspan systemstack(func() { lock(&mheap_.lock) s = (*mspan)(mheap_.spanalloc.alloc()) unlock(&mheap_.lock) }) return (*MSpan)(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)