runtime.mspan.npages (field)
18 uses
runtime (current package)
heapdump.go#L483: n := (s.npages << _PageShift) / size
mbitmap.go#L747: nw := (s.npages << _PageShift) / sys.PtrSize
mcache.go#L183: atomic.Xadd64(&memstats.heap_live, int64(s.npages*pageSize)-int64(usedBytes))
mgcsweep.go#L228: npages = s.npages
mgcsweep.go#L334: traceGCSweepSpan(s.npages * _PageSize)
mgcsweep.go#L337: atomic.Xadd64(&mheap_.pagesSwept, int64(s.npages))
mheap.go#L388: npages uintptr // number of pages in span
mheap.go#L473: total = s.npages << _PageShift
mheap.go#L847: npages := s.npages
mheap.go#L915: memclrNoHeapPointers(unsafe.Pointer(s.base()), s.npages<<_PageShift)
mheap.go#L1218: s.limit = s.base() + s.npages*pageSize
mheap.go#L1414: bytes := s.npages << _PageShift
mheap.go#L1453: atomic.Xadd64(&h.pagesInUse, -int64(s.npages))
mheap.go#L1465: nbytes := s.npages * pageSize
mheap.go#L1488: h.pages.free(s.base(), s.npages)
mheap.go#L1531: span.npages = npages
mheap.go#L1557: print("runtime: failed mSpanList.remove span.npages=", span.npages,
stack.go#L490: log2npage := stacklog2(s.npages)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |