runtime.mspan.nelems (field)
33 uses
runtime (current package)
heapdump.go#L488: for freeIndex := uintptr(0); freeIndex < s.nelems; freeIndex++ {
malloc.go#L849: if result < s.nelems {
malloc.go#L851: if freeidx%64 == 0 && freeidx != s.nelems {
malloc.go#L876: if freeIndex == s.nelems {
malloc.go#L878: if uintptr(s.allocCount) != s.nelems {
malloc.go#L879: println("runtime: s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
malloc.go#L889: if freeIndex >= s.nelems {
malloc.go#L895: if uintptr(s.allocCount) > s.nelems {
malloc.go#L896: println("s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
mbitmap.go#L168: snelems := s.nelems
mbitmap.go#L776: bytes := divRoundUp(s.nelems, 8)
mcache.go#L150: if uintptr(s.allocCount) != s.nelems {
mcache.go#L167: if uintptr(s.allocCount) == s.nelems {
mcache.go#L178: atomic.Xadduintptr(&stats.smallAllocCount[spc.sizeclass()], uintptr(s.nelems)-uintptr(s.allocCount))
mcache.go#L261: n := uintptr(s.nelems) - uintptr(s.allocCount)
mcentral.go#L143: if freeIndex != s.nelems {
mcentral.go#L168: n := int(s.nelems) - int(s.allocCount)
mcentral.go#L169: if n == 0 || s.freeindex == s.nelems || uintptr(s.allocCount) == s.nelems {
mcentral.go#L216: if int(s.nelems)-int(s.allocCount) > 0 {
mgcsweep.go#L412: for i := uintptr(0); i < s.nelems; i++ {
mgcsweep.go#L434: if s.freeindex < s.nelems {
mgcsweep.go#L445: for i := obj/8 + 1; i < divRoundUp(s.nelems, 8); i++ {
mgcsweep.go#L458: print("runtime: nelems=", s.nelems, " nalloc=", nalloc, " previous allocCount=", s.allocCount, " nfreed=", nfreed, "\n")
mgcsweep.go#L471: s.gcmarkBits = newMarkBits(s.nelems)
mgcsweep.go#L522: if uintptr(nalloc) == s.nelems {
mgcsweep.go#L585: for i := uintptr(0); i < s.nelems; i++ {
mheap.go#L410: nelems uintptr // number of object in the span.
mheap.go#L1217: s.nelems = 0
mheap.go#L1226: s.nelems = 1
mheap.go#L1234: s.nelems = nbytes / s.elemsize
mheap.go#L1246: s.gcmarkBits = newMarkBits(s.nelems)
mheap.go#L1247: s.allocBits = newAllocBits(s.nelems)
 |
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. |