We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f63f16 commit 7ccbcc9Copy full SHA for 7ccbcc9
misc/cgo/test/testdata/issue9400_linux.go
@@ -50,6 +50,8 @@ func test9400(t *testing.T) {
50
// Disable GC for the duration of the test.
51
// This avoids a potential GC deadlock when spinning in uninterruptable ASM below #49695.
52
defer debug.SetGCPercent(debug.SetGCPercent(-1))
53
+ // And finish any pending GC after we pause, if any.
54
+ runtime.GC()
55
56
// Temporarily rewind the stack and trigger SIGSETXID
57
issue9400.RewindAndSetgid()
0 commit comments