diff options
Diffstat (limited to 'src/runtime/debug.go')
| -rw-r--r-- | src/runtime/debug.go | 4 |
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 } |
