- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for readGOMEMLIMIT (1.28 sec)
-
src/runtime/mgcpacer.go
// it, there's no point in doing the rest. unlock(&mheap_.lock) return } gcControllerCommit() unlock(&mheap_.lock) }) return out } func readGOMEMLIMIT() int64 { p := gogetenv("GOMEMLIMIT") if p == "" || p == "off" { return maxInt64 } n, ok := parseByteCount(p) if !ok { print("GOMEMLIMIT=", p, "\n")
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/mgc.go
// Initialize GC pacer state. // Use the environment variable GOGC for the initial gcPercent value. // Use the environment variable GOMEMLIMIT for the initial memoryLimit value. gcController.init(readGOGC(), readGOMEMLIMIT()) work.startSema = 1 work.markDoneSema = 1 lockInit(&work.sweepWaiters.lock, lockRankSweepWaiters) lockInit(&work.assistQueue.lock, lockRankAssistQueue) lockInit(&work.wbufSpans.lock, lockRankWbufSpans)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0)