aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/os_linux.go')
-rw-r--r--src/runtime/os_linux.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go
index 4319a99c7d..6386b82a85 100644
--- a/src/runtime/os_linux.go
+++ b/src/runtime/os_linux.go
@@ -726,7 +726,7 @@ func syscall_runtime_doAllThreadsSyscall(trap, a1, a2, a3, a4, a5, a6 uintptr) (
// N.B. Internally, this function does not depend on STW to
// successfully change every thread. It is only needed for user
// expectations, per above.
- stopTheWorld(stwAllThreadsSyscall)
+ stw := stopTheWorld(stwAllThreadsSyscall)
// This function depends on several properties:
//
@@ -770,7 +770,7 @@ func syscall_runtime_doAllThreadsSyscall(trap, a1, a2, a3, a4, a5, a6 uintptr) (
if errno != 0 {
releasem(getg().m)
allocmLock.unlock()
- startTheWorld()
+ startTheWorld(stw)
return r1, r2, errno
}
@@ -855,7 +855,7 @@ func syscall_runtime_doAllThreadsSyscall(trap, a1, a2, a3, a4, a5, a6 uintptr) (
releasem(getg().m)
allocmLock.unlock()
- startTheWorld()
+ startTheWorld(stw)
return r1, r2, errno
}