type runtime.spanClass
18 uses
runtime (current package)
malloc.go#L872: func (c *mcache) nextFree(spc spanClass) (v gclinkptr, s *mspan, shouldhelpgc bool) {
mcache.go#L146: func (c *mcache) refill(spc spanClass) {
mcache.go#L263: atomic.Xadduintptr(&stats.smallAllocCount[spanClass(i).sizeclass()], -n)
mcentral.go#L21: spanclass spanClass
mcentral.go#L46: func (c *mcentral) init(spc spanClass) {
mgcsweep.go#L89: func (s sweepClass) split() (spc spanClass, full bool) {
mgcsweep.go#L90: return spanClass(s >> 1), s&1 == 0
mheap.go#L457: spanclass spanClass // size class and noscan (uint8)
mheap.go#L532: type spanClass uint8
mheap.go#L536: tinySpanClass = spanClass(tinySizeClass<<1 | 1)
mheap.go#L539: func makeSpanClass(sizeclass uint8, noscan bool) spanClass {
mheap.go#L540: return spanClass(sizeclass<<1) | spanClass(bool2int(noscan))
mheap.go#L543: func (sc spanClass) sizeclass() int8 {
mheap.go#L547: func (sc spanClass) noscan() bool {
mheap.go#L723: h.central[i].mcentral.init(spanClass(i))
mheap.go#L899: func (h *mheap) alloc(npages uintptr, spanclass spanClass, needzero bool) *mspan {
mheap.go#L1124: func (h *mheap) allocSpan(npages uintptr, typ spanAllocType, spanclass spanClass) (s *mspan) {
 |
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. |