- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RunGetgThreadSwitchTest (0.17 sec)
-
src/runtime/proc_test.go
d := i * time.Microsecond t.Run(fmt.Sprint(d), func(t *testing.T) { testPreemptionAfterSyscall(t, d) }) } } func TestGetgThreadSwitch(t *testing.T) { runtime.RunGetgThreadSwitchTest() } // TestNetpollBreak tests that netpollBreak can break a netpoll. // This test is not particularly safe since the call to netpoll // will pick up any stray files that are ready, but it should work
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.8K bytes - Viewed (0) -
src/runtime/export_test.go
panic("late non-emptyRest") } if k == n-1 && b.tophash[i] == emptyOne { panic("last non-emptyRest entry is emptyOne") } k++ } } } } func RunGetgThreadSwitchTest() { // Test that getg works correctly with thread switch. // With gccgo, if we generate getg inlined, the backend // may cache the address of the TLS variable, which
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)