aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/panic1.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/panic1.go')
-rw-r--r--src/runtime/panic1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/panic1.go b/src/runtime/panic1.go
index 880c3bac9b..4c0eb40585 100644
--- a/src/runtime/panic1.go
+++ b/src/runtime/panic1.go
@@ -135,7 +135,7 @@ func canpanic(gp *g) bool {
if gp == nil || gp != _m_.curg {
return false
}
- if _m_.locks-_m_.softfloat != 0 || _m_.mallocing != 0 || _m_.throwing != 0 || _m_.gcing != 0 || _m_.dying != 0 {
+ if _m_.locks-_m_.softfloat != 0 || _m_.mallocing != 0 || _m_.throwing != 0 || _m_.preemptoff != "" || _m_.dying != 0 {
return false
}
status := readgstatus(gp)