- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for mappedReady (0.15 sec)
-
src/runtime/mgcpacer.go
var heapFree, heapAlloc, mappedReady uint64 for { heapFree = c.heapFree.load() // Free and unscavenged memory. heapAlloc = c.totalAlloc.Load() - c.totalFree.Load() // Heap object bytes in use. mappedReady = c.mappedReady.Load() // Total unreleased mapped memory. if heapFree+heapAlloc <= mappedReady { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
memoryLimitGoal := uint64(float64(memoryLimit) * (1 - reduceExtraPercent/100.0)) // mappedReady is comparable to memoryLimit, and represents how much total memory // the Go runtime has committed now (estimated). mappedReady := gcController.mappedReady.Load() // If we're below the goal already indicate that we don't need the background
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/mheap.go
if limit := gcController.memoryLimit.Load(); !gcCPULimiter.limiting() { // Assist with scavenging to maintain the memory limit by the amount // that we expect to page in. inuse := gcController.mappedReady.Load() // Be careful about overflow, especially with uintptrs. Even on 32-bit platforms // someone can set a really big memory limit that isn't maxInt64. if uint64(scav)+inuse > uint64(limit) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0)