internal/runtime/atomic.Uint64.Add (method)
30 uses
internal/runtime/atomic (current package)
types.go#L343: func (u *Uint64) Add(delta int64) uint64 {
runtime
arena.go#L903: gcController.totalFree.Add(int64(s.elemsize))
arena.go#L1084: gcController.totalAlloc.Add(int64(s.elemsize))
histogram.go#L108: h.underflow.Add(1)
histogram.go#L129: h.overflow.Add(1)
histogram.go#L134: h.counts[bucket*timeHistNumSubBuckets+subBucket].Add(1)
mcache.go#L175: gcController.totalAlloc.Add(bytesAllocated)
mcache.go#L246: gcController.totalAlloc.Add(int64(npages * pageSize))
mcache.go#L279: gcController.totalAlloc.Add(slotsUsed * int64(s.elemsize))
mem.go#L51: gcController.mappedReady.Add(int64(n))
mem.go#L61: gcController.mappedReady.Add(-int64(n))
mem.go#L76: gcController.mappedReady.Add(int64(prepared))
mem.go#L115: gcController.mappedReady.Add(-int64(n))
mem.go#L129: gcController.mappedReady.Add(-int64(n))
mgcpacer.go#L864: live := gcController.heapLive.Add(dHeapLive)
mgcpacer.go#L875: gcController.heapScan.Add(dHeapScan)
mgcpacer.go#L885: c.maxStackScan.Add(amount)
mgcpacer.go#L890: c.maxStackScan.Add(pp.maxStackScanDelta)
mgcpacer.go#L896: c.globalsScan.Add(amount)
mgcsweep.go#L525: mheap_.pagesSwept.Add(int64(s.npages))
mgcsweep.go#L763: gcController.totalFree.Add(int64(nfreed) * int64(s.elemsize))
mgcsweep.go#L799: gcController.totalFree.Add(int64(size))
mheap.go#L815: idx := uintptr(h.reclaimIndex.Add(pagesPerReclaimerChunk) - pagesPerReclaimerChunk)
mspanset.go#L367: return headTailIndex(h.u.Add(1 << 32))
mspanset.go#L372: return headTailIndex(h.u.Add(-(1 << 32)))
mspanset.go#L377: ht := headTailIndex(h.u.Add(1))
proc.go#L2412: gp.goid = sched.goidgen.Add(1)
proc.go#L5072: pp.goidcache = sched.goidgen.Add(_GoidCacheBatch)
tracemap.go#L58: return tab.seq.Add(1)
tracemap.go#L95: newNode = tab.newTraceMapNode(data, size, hash, tab.seq.Add(1))
![]() |
The pages are generated with Golds v0.7.6. (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. |