Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for stack188 (0.07 sec)

  1. src/runtime/chan_test.go

    }
    
    func TestShrinkStackDuringBlockedSend(t *testing.T) {
    	// make sure that channel operations still work when we are
    	// blocked on a channel send and we shrink the stack.
    	// NOTE: this test probably won't fail unless stack1.go:stackDebug
    	// is set to >= 1.
    	const n = 10
    	c := make(chan int)
    	done := make(chan struct{})
    
    	go func() {
    		for i := 0; i < n; i++ {
    			c <- i
    			// use lots of stack, briefly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
Back to top