const internal/runtime/gc.PageSize
14 uses
internal/runtime/gc (current package)
malloc.go#L11: PageWords = PageSize / goarch.PtrSize
malloc.go#L50: PageSize = 1 << PageShift
scan.go#L15: type PtrMask [PageSize / goarch.PtrSize / (goarch.PtrSize * 8)]uintptr
internal/runtime/gc/scan
expand_reference.go#L21: nObj := uintptr(gc.SizeClassToNPages[sizeClass]) * gc.PageSize / size
runtime
mgc.go#L813: p.gcw.ptrBuf = (*[gc.PageSize / goarch.PtrSize]uintptr)(persistentalloc(gc.PageSize, goarch.PtrSize, &memstats.gcMiscSys))
mgcmark_greenteagc.go#L181: return (*spanInlineMarkBits)(unsafe.Pointer(base + gc.PageSize - unsafe.Sizeof(spanInlineMarkBits{})))
mgcmark_greenteagc.go#L281: base := alignDown(p, gc.PageSize)
mgcmark_greenteagc.go#L875: usableSpanSize := uint64(gc.PageSize - unsafe.Sizeof(spanInlineMarkBits{}))
mgcmark_greenteagc.go#L877: usableSpanSize -= gc.PageSize / goarch.PtrSize / 8
mgcmark_greenteagc.go#L981: hbitsBase, _ := spanHeapBitsRange(spanBase, gc.PageSize, objSize)
mgcmark_greenteagc.go#L1022: hbitsBase, _ := spanHeapBitsRange(base, gc.PageSize, objSize)
mgcmark_greenteagc.go#L1099: base := spanBase + gc.PageSize - unsafe.Sizeof(gc.PtrMask{}) - unsafe.Sizeof(spanInlineMarkBits{})
mheap.go#L1826: span.limit = base + npages*gc.PageSize // see go.dev/issue/74288; adjusted later for heap spans
![]() |
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. |