runtime.mheap.sweepHeapLiveBasis (field)
4 uses
runtime (current package)
mgc.go#L944: mheap_.sweepHeapLiveBasis = heapLiveBasis
mgcsweep.go#L267: print("pacer: sweep done at heap size ", memstats.heap_live>>20, "MB; allocated ", (memstats.heap_live-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept, " pages at ", sweepRatio, " pages/byte\n")
mgcsweep.go#L648: newHeapLive := uintptr(atomic.Load64(&memstats.heap_live)-mheap_.sweepHeapLiveBasis) + spanBytes
mheap.go#L107: sweepHeapLiveBasis uint64 // value of heap_live to use as the origin of sweep ratio; written with lock, read without