runtime.mspan.allocCount (field)
30 uses
runtime (current package)
malloc.go#L856: s.allocCount++
malloc.go#L878: if uintptr(s.allocCount) != s.nelems {
malloc.go#L879: println("runtime: s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
malloc.go#L894: s.allocCount++
malloc.go#L895: if uintptr(s.allocCount) > s.nelems {
malloc.go#L896: println("s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
malloc.go#L1080: span.allocCount = 1
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#L182: usedBytes := uintptr(s.allocCount) * s.elemsize
mcache.go#L261: n := uintptr(s.nelems) - uintptr(s.allocCount)
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#L189: if s.allocCount == 0 {
mcentral.go#L216: if int(s.nelems)-int(s.allocCount) > 0 {
mgcsweep.go#L454: nfreed := s.allocCount - nalloc
mgcsweep.go#L455: if nalloc > s.allocCount {
mgcsweep.go#L458: print("runtime: nelems=", s.nelems, " nalloc=", nalloc, " previous allocCount=", s.allocCount, " nfreed=", nfreed, "\n")
mgcsweep.go#L462: s.allocCount = nalloc
mheap.go#L456: allocCount uint16 // number of allocated objects
mheap.go#L1445: if s.allocCount != 0 {
mheap.go#L1449: if s.allocCount != 0 || s.sweepgen != h.sweepgen {
mheap.go#L1450: print("mheap.freeSpanLocked - span ", s, " ptr ", hex(s.base()), " allocCount ", s.allocCount, " sweepgen ", s.sweepgen, "/", h.sweepgen, "\n")
mheap.go#L1532: span.allocCount = 0
stack.go#L194: if s.allocCount != 0 {
stack.go#L214: s.allocCount++
stack.go#L234: s.allocCount--
stack.go#L235: if gcphase == _GCoff && s.allocCount == 0 {
stack.go#L1192: if s.allocCount == 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. |