Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTracebackParentChildGoroutines (0.3 sec)

  1. src/runtime/traceback_test.go

    // Poison the arg area with deterministic values.
    //
    //go:noinline
    func poisonStack() [20]int {
    	return [20]int{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}
    }
    
    func TestTracebackParentChildGoroutines(t *testing.T) {
    	parent := fmt.Sprintf("goroutine %d", runtime.Goid())
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		buf := make([]byte, 1<<10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
Back to top