Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for freeOSMemory (0.24 sec)

  1. 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)
  2. 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)
Back to top