- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for heapRetained (0.19 sec)
-
src/runtime/mgcscavenge.go
// in the chunk in a single GC cycle for it to be considered high density. scavChunkHiOccFrac = 0.96875 scavChunkHiOccPages = uint16(scavChunkHiOccFrac * pallocChunkPages) ) // heapRetained returns an estimate of the current heap RSS. func heapRetained() uint64 { return gcController.heapInUse.load() + gcController.heapFree.load() } // gcPaceScavenger updates the scavenger's pacing, particularly
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
src/runtime/mstats.go
throw("heapReleased and consistent stats are not equal") } heapRetained := gcController.heapInUse.load() + gcController.heapFree.load() consRetained := uint64(consStats.committed - consStats.inStacks - consStats.inWorkBufs - consStats.inPtrScalarBits) if heapRetained != consRetained { print("runtime: global value=", heapRetained, "\n") print("runtime: consistent value=", consRetained, "\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 34.2K bytes - Viewed (0) -
src/runtime/mheap.go
// Only bother with this because we're not using a memory limit. We don't // care about heap growths as long as we're under the memory limit, and the // previous check for scaving already handles that. if retained := heapRetained(); retained+uint64(growth) > goal { // The scavenging algorithm requires the heap lock to be dropped so it // can acquire it only sparingly. This is a potentially expensive operation
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0)