Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStackGrowth (0.19 sec)

  1. src/runtime/stack_test.go

    	t.Logf("Inuse %vMB for stack mem", inuse>>20)
    	if inuse > 4<<20 {
    		t.Fatalf("Stack inuse: want %v, got %v", 4<<20, inuse)
    	}
    }
    
    // Test stack growing in different contexts.
    func TestStackGrowth(t *testing.T) {
    	if *flagQuick {
    		t.Skip("-quick")
    	}
    
    	var wg sync.WaitGroup
    
    	// in a normal goroutine
    	var growDuration time.Duration // For debugging failures
    	wg.Add(1)
    	go func() {
    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