internal/runtime/atomic.Uint64.Add (method)
34 uses
internal/runtime/atomic (current package)
types.go#L343: func (u *Uint64) Add(delta int64) uint64 {
runtime
arena.go#L891: gcController.totalFree.Add(int64(s.elemsize))
arena.go#L1092: 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#L198: gcController.totalAlloc.Add(bytesAllocated)
mcache.go#L269: gcController.totalAlloc.Add(int64(npages * pageSize))
mcache.go#L310: gcController.totalAlloc.Add(slotsUsed * int64(s.elemsize))
mcleanup.go#L440: q.workUnits.Add(int64(n))
mcleanup.go#L753: gcCleanups.executed.Add(int64(b.n))
mem.go#L51: gcController.mappedReady.Add(int64(n))
mem.go#L69: gcController.mappedReady.Add(-int64(n))
mem.go#L90: gcController.mappedReady.Add(int64(prepared))
mem.go#L143: gcController.mappedReady.Add(-int64(n))
mem.go#L157: gcController.mappedReady.Add(-int64(n))
mgcpacer.go#L957: live := gcController.heapLive.Add(dHeapLive)
mgcpacer.go#L968: gcController.heapScan.Add(dHeapScan)
mgcpacer.go#L978: c.maxStackScan.Add(amount)
mgcpacer.go#L983: c.maxStackScan.Add(pp.maxStackScanDelta)
mgcpacer.go#L989: c.globalsScan.Add(amount)
mgcsweep.go#L532: mheap_.pagesSwept.Add(int64(s.npages))
mgcsweep.go#L778: gcController.totalFree.Add(int64(nfreed) * int64(s.elemsize))
mgcsweep.go#L814: gcController.totalFree.Add(int64(size))
mheap.go#L871: idx := uintptr(h.reclaimIndex.Add(pagesPerReclaimerChunk) - pagesPerReclaimerChunk)
mspanset.go#L389: return headTailIndex(h.u.Add(1 << 32))
mspanset.go#L394: return headTailIndex(h.u.Add(-(1 << 32)))
mspanset.go#L399: ht := headTailIndex(h.u.Add(1))
proc.go#L2533: gp.goid = sched.goidgen.Add(1)
proc.go#L5394: pp.goidcache = sched.goidgen.Add(_GoidCacheBatch)
proc.go#L6016: sched.goroutinesCreated.Add(int64(pp.goroutinesCreated))
synctest.go#L181: id: bubbleGen.Add(1),
tracemap.go#L65: return tab.seq.Add(1)
tracemap.go#L102: newNode = tab.newTraceMapNode(data, size, hash, tab.seq.Add(1))
![]() |
The pages are generated with Golds v0.8.4. (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. |