- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for freeOSMemory (0.19 sec)
-
src/runtime/debug/garbage_test.go
// susceptible to collection. big = nil // FreeOSMemory runs a GC cycle before releasing memory, // so it's fine to skip a GC here. // // It's possible the background scavenger runs concurrently // with this function and does most of the work for it. // If that happens, it's OK. What we want is a test that fails // often if FreeOSMemory does not work correctly, and a test // that passes every time if it does.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0) -
src/runtime/debug/garbage.go
func SetGCPercent(percent int) int { return int(setGCPercent(int32(percent))) } // FreeOSMemory forces a garbage collection followed by an // attempt to return as much memory to the operating system // as possible. (Even if this is not called, the runtime gradually // returns memory to the operating system in a background task.) func FreeOSMemory() { freeOSMemory() } // SetMaxStack sets the maximum amount of memory that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.9K bytes - Viewed (0) -
src/runtime/extern.go
#% util the fraction of all unscavenged heap memory which is in-use If the line ends with "(forced)", then scavenging was forced by a debug.FreeOSMemory() call. scheddetail: setting schedtrace=X and scheddetail=1 causes the scheduler to emit detailed multiline info every X milliseconds, describing state of the scheduler, processors, threads and goroutines.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 18.9K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
// that a chunk that just became dense is scavenged in the case of a race between memory // allocation and scavenging. // // When synchronously scavenging for the memory limit or for debug.FreeOSMemory, these // "dense" packing heuristics are ignored (in other words, scavenging is "forced") because // in these scenarios returning memory to the OS is more important than keeping CPU // overheads low. package runtime
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/metrics_test.go
// Let's make sure there's no background scavenge work to do. // // The runtime.GC calls below ensure the background sweeper // will not run during the idle period. debug.FreeOSMemory() for retries := 0; retries < maxFailures; retries++ { // Read 1. runtime.GC() // Update /cpu/classes metrics. metrics.Read(m1) // Sleep. time.Sleep(dur) // Read 2.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/mheap.go
gp.m.mallocing-- if debug.scavtrace > 0 { printScavTrace(0, released, true) } } //go:linkname runtime_debug_freeOSMemory runtime/debug.freeOSMemory func runtime_debug_freeOSMemory() { GC() systemstack(func() { mheap_.scavengeAll() }) } // Initialize a new span with the given start and npages.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"BuildInfo.Path", Field, 12}, {"BuildInfo.Settings", Field, 18}, {"BuildSetting", Type, 18}, {"BuildSetting.Key", Field, 18}, {"BuildSetting.Value", Field, 18}, {"FreeOSMemory", Func, 1}, {"GCStats", Type, 1}, {"GCStats.LastGC", Field, 1}, {"GCStats.NumGC", Field, 1}, {"GCStats.Pause", Field, 1}, {"GCStats.PauseEnd", Field, 4}, {"GCStats.PauseQuantiles", Field, 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)