internal/runtime/atomic.Uint64.Load (method)
80 uses
internal/runtime/atomic (current package)
types.go#L308: func (u *Uint64) Load() uint64 {
types.go#L437: r := f.u.Load()
internal/runtime/exithook
hooks.go#L58: if Goid() == runGoid.Load() {
runtime
histogram.go#L143: hist.counts[0] = h.underflow.Load()
histogram.go#L145: hist.counts[i+1] = h.counts[i].Load()
histogram.go#L147: hist.counts[len(hist.counts)-1] = h.overflow.Load()
mcleanup.go#L364: wu := q.workUnits.Load()
mcleanup.go#L432: if q.workUnits.Load() > 0 {
mcleanup.go#L506: return q.workUnits.Load() > 0 && (q.asleep.Load() > 0 || q.ng.Load() < maxCleanupGs())
mcleanup.go#L518: work := q.workUnits.Load()
mcleanup.go#L612: executed = q.executed.Load()
metrics.go#L693: a.heapScan = gcController.heapScan.Load()
metrics.go#L694: a.stackScan = gcController.lastStackScan.Load()
metrics.go#L695: a.globalsScan = gcController.globalsScan.Load()
mgc.go#L623: return gcController.heapLive.Load() >= trigger
mgc.go#L736: work.heap0 = gcController.heapLive.Load()
mgc.go#L1041: work.heap1 = gcController.heapLive.Load()
mgc.go#L1289: gcController.lastStackScan.Load()>>20, " MB stacks, ",
mgc.go#L1290: gcController.globalsScan.Load()>>20, " MB globals, ",
mgc.go#L1799: work.initialHeapLive = gcController.heapLive.Load()
mgclimit.go#L408: if limiterEventStamp(e.stamp.Load()).typ() != limiterEventNone {
mgclimit.go#L423: old := limiterEventStamp(e.stamp.Load())
mgclimit.go#L450: stamp = limiterEventStamp(e.stamp.Load())
mgcpacer.go#L396: c.triggered = c.heapLive.Load()
mgcpacer.go#L462: " (scan ", gcController.heapScan.Load()>>20, " MB in ",
mgcpacer.go#L499: live := c.heapLive.Load()
mgcpacer.go#L500: scan := c.heapScan.Load()
mgcpacer.go#L509: scanWorkExpected := int64(c.lastHeapScan + c.lastStackScan.Load() + c.globalsScan.Load())
mgcpacer.go#L515: maxStackScan := c.maxStackScan.Load()
mgcpacer.go#L516: maxScanWork := int64(scan + maxStackScan + c.globalsScan.Load())
mgcpacer.go#L615: if c.heapLive.Load() <= c.triggered {
mgcpacer.go#L659: currentConsMark := (float64(c.heapLive.Load()-c.triggered) * (utilization + idleUtilization)) /
mgcpacer.go#L680: print(c.heapScanWork.Load(), "+", c.stackScanWork.Load(), "+", c.globalsScanWork.Load(), " B work (", c.lastHeapScan+c.lastStackScan.Load()+c.globalsScan.Load(), " B exp.) ")
mgcpacer.go#L681: live := c.heapLive.Load()
mgcpacer.go#L945: goal = c.gcPercentHeapGoal.Load()
mgcpacer.go#L954: sweepDistTrigger := c.sweepDistMinTrigger.Load()
mgcpacer.go#L994: heapAlloc = c.totalAlloc.Load() - c.totalFree.Load() // Heap object bytes in use.
mgcpacer.go#L995: mappedReady = c.mappedReady.Load() // Total unreleased mapped memory.
mgcpacer.go#L1184: runway := c.runway.Load()
mgcpacer.go#L1230: c.sweepDistMinTrigger.Store(c.heapLive.Load() + sweepMinHeapDistance)
mgcpacer.go#L1238: gcPercentHeapGoal = c.heapMarked + (c.heapMarked+c.lastStackScan.Load()+c.globalsScan.Load())*uint64(gcPercent)/100
mgcpacer.go#L1270: c.runway.Store(uint64((c.consMark * (1 - gcGoalUtilization) / (gcGoalUtilization)) * float64(c.lastHeapScan+c.lastStackScan.Load()+c.globalsScan.Load())))
mgcpacer.go#L1382: old := c.idleMarkWorkers.Load()
mgcpacer.go#L1409: p := c.idleMarkWorkers.Load()
mgcpacer.go#L1417: old := c.idleMarkWorkers.Load()
mgcpacer.go#L1437: old := c.idleMarkWorkers.Load()
mgcscavenge.go#L179: mappedReady := gcController.mappedReady.Load()
mgcscavenge.go#L407: return heapRetained() <= scavenge.gcPercentGoal.Load() &&
mgcscavenge.go#L408: gcController.mappedReady.Load() <= scavenge.memoryLimitGoal.Load()
mgcscavenge.go#L1201: return unpackScavChunkData(sc.value.Load())
mgcsweep.go#L177: live := gcController.heapLive.Load()
mgcsweep.go#L178: print("pacer: sweep done at heap size ", live>>20, "MB; allocated ", (live-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept.Load(), " pages at ", mheap_.sweepPagesPerByte, " pages/byte\n")
mgcsweep.go#L926: sweptBasis := mheap_.pagesSweptBasis.Load()
mgcsweep.go#L927: live := gcController.heapLive.Load()
mgcsweep.go#L949: for pagesTarget > int64(mheap_.pagesSwept.Load()-sweptBasis) {
mgcsweep.go#L954: if mheap_.pagesSweptBasis.Load() != sweptBasis {
mgcsweep.go#L993: heapLiveBasis := gcController.heapLive.Load()
mgcsweep.go#L1003: pagesSwept := mheap_.pagesSwept.Load()
mheap.go#L839: if h.reclaimIndex.Load() >= 1<<63 {
mheap.go#L1333: inuse := gcController.mappedReady.Load()
mheap.go#L1341: if goal := scavenge.gcPercentGoal.Load(); goal != ^uint64(0) && growth > 0 {
mspanset.go#L366: return headTailIndex(h.u.Load())
mstats.go#L482: if gcController.totalAlloc.Load() != totalAlloc {
mstats.go#L483: print("runtime: totalAlloc=", gcController.totalAlloc.Load(), "\n")
mstats.go#L487: if gcController.totalFree.Load() != totalFree {
mstats.go#L488: print("runtime: totalFree=", gcController.totalFree.Load(), "\n")
mstats.go#L495: if gcController.mappedReady.Load() != totalMapped-uint64(consStats.released) {
mstats.go#L496: print("runtime: mappedReady=", gcController.mappedReady.Load(), "\n")
profbuf.go#L153: return uint32(b.overflow.Load()) > 0
profbuf.go#L160: overflow := b.overflow.Load()
profbuf.go#L161: time = b.overflowTime.Load()
profbuf.go#L172: overflow = b.overflow.Load()
profbuf.go#L173: time = b.overflowTime.Load()
profbuf.go#L182: overflow := b.overflow.Load()