const internal/runtime/gc.PageShift
15 uses
internal/runtime/gc (current package)
malloc.go#L50: PageSize = 1 << PageShift
sizeclasses.go#L91: PageShift = 13
runtime
heapdump.go#L495: n := (s.npages << gc.PageShift) / size
malloc.go#L118: pageSize = 1 << gc.PageShift
mcache.go#L246: npages := size >> gc.PageShift
mgcmark_greenteagc.go#L828: if doubleCheckGreenTea && spanBase&((1<<gc.PageShift)-1) != 0 {
mgcmark_greenteagc.go#L835: return uintptr(p) &^ ((1 << gc.PageShift) - 1)
mgcmark_greenteagc.go#L839: return uint16(p) & ((1 << gc.PageShift) - 1)
mheap.go#L523: total = s.npages << gc.PageShift
mheap.go#L1681: bytes := s.npages << gc.PageShift
mheap.go#L1687: bytes := s.npages << gc.PageShift
mpagealloc.go#L65: logPallocChunkBytes = logPallocChunkPages + gc.PageShift
stack.go#L167: free [heapAddrBits - gc.PageShift]mSpanList // free lists by log_2(s.npages)
stack.go#L200: s = mheap_.allocManual(_StackCacheSize>>gc.PageShift, spanAllocStack)
stack.go#L407: npage := uintptr(n) >> gc.PageShift
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |