- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRaceGoroutineCreationStack (0.35 sec)
-
src/runtime/race/testdata/sync_test.go
x = 2 c <- true }) <-c <-c } // This test's output is intended to be // observed manually. One should check // that goroutine creation stack is // comprehensible. func TestRaceGoroutineCreationStack(t *testing.T) { var x int _ = x var ch = make(chan bool, 1) f1 := func() { x = 1 ch <- true } f2 := func() { go f1() } f3 := func() { go f2() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 10 15:05:17 UTC 2020 - 3K bytes - Viewed (0)