- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRaceFin (0.21 sec)
-
src/runtime/race/testdata/finalizer_test.go
finVar.Lock() finVar.cnt++ finVar.Unlock() }) c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) finVar.Lock() finVar.cnt++ finVar.Unlock() } func TestRaceFin(t *testing.T) { c := make(chan bool) y := 0 _ = y go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { y = 42 }) c <- true }() <-c runtime.GC()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 22:09:38 UTC 2017 - 1K bytes - Viewed (0)