aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/debug.go')
-rw-r--r--src/runtime/debug.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/debug.go b/src/runtime/debug.go
index 1cd9189ed5..0e61692f3d 100644
--- a/src/runtime/debug.go
+++ b/src/runtime/debug.go
@@ -25,12 +25,12 @@ func GOMAXPROCS(n int) int {
return ret
}
- stopTheWorldGC(stwGOMAXPROCS)
+ stw := stopTheWorldGC(stwGOMAXPROCS)
// newprocs will be processed by startTheWorld
newprocs = int32(n)
- startTheWorldGC()
+ startTheWorldGC(stw)
return ret
}