runtime.spanClass.sizeclass (method)
9 uses
runtime (current package)
mcache.go#L178: atomic.Xadduintptr(&stats.smallAllocCount[spc.sizeclass()], uintptr(s.nelems)-uintptr(s.allocCount))
mcache.go#L263: atomic.Xadduintptr(&stats.smallAllocCount[spanClass(i).sizeclass()], -n)
mcentral.go#L81: spanBytes := uintptr(class_to_allocnpages[c.spanclass.sizeclass()]) * _PageSize
mcentral.go#L229: npages := uintptr(class_to_allocnpages[c.spanclass.sizeclass()])
mcentral.go#L230: size := uintptr(class_to_size[c.spanclass.sizeclass()])
mgcsweep.go#L498: if spc.sizeclass() != 0 {
mgcsweep.go#L507: atomic.Xadduintptr(&stats.smallFreeCount[spc.sizeclass()], uintptr(nfreed))
mheap.go#L543: func (sc spanClass) sizeclass() int8 {
mheap.go#L1224: if sizeclass := spanclass.sizeclass(); sizeclass == 0 {
 |
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. |