Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. src/runtime/debug/stubs.go

    // license that can be found in the LICENSE file.
    
    package debug
    
    import (
    	"time"
    )
    
    // Implemented in package runtime.
    func readGCStats(*[]time.Duration)
    func freeOSMemory()
    func setMaxStack(int) int
    func setGCPercent(int32) int32
    func setPanicOnFault(bool) bool
    func setMaxThreads(int) int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 15:12:04 UTC 2022
    - 435 bytes
    - Viewed (0)
Back to top