Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for useStackPtrs (0.1 sec)

  1. src/runtime/stack_test.go

    		c <- make([]byte, 1)
    	}
    
    	for i := 0; i < b.N; i++ {
    		<-c // get token
    		go func() {
    			useStackPtrs(1000, false) // uses ~1MB max
    			m := make([]byte, 8192)   // make GC trigger occasionally
    			c <- m                    // return token
    		}()
    	}
    }
    
    func useStackPtrs(n int, b bool) {
    	if b {
    		// This code contributes to the stack frame size, and hence to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top