Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mk2 (2.79 sec)

  1. test/gc.go

    // license that can be found in the LICENSE file.
    
    // Simple test of the garbage collector.
    
    package main
    
    import "runtime"
    
    func mk2() {
    	b := new([10000]byte)
    	_ = b
    	//	println(b, "stored at", &b)
    }
    
    func mk1() { mk2() }
    
    func main() {
    	for i := 0; i < 10; i++ {
    		mk1()
    		runtime.GC()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 411 bytes
    - Viewed (0)
Back to top