aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r--src/runtime/proc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 33219419f9..33d7d6f552 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -265,7 +265,7 @@ func main() {
Gosched()
}
}
- if atomic.Load(&panicking) != 0 {
+ if panicking.Load() != 0 {
gopark(nil, nil, waitReasonPanicWait, traceEvGoStop, 1)
}
@@ -5016,7 +5016,7 @@ func checkdead() {
// freezetheworld will cause all running threads to block.
// And runtime will essentially enter into deadlock state,
// except that there is a thread that will call exit soon.
- if panicking > 0 {
+ if panicking.Load() > 0 {
return
}