aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtime/lock_sema.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/lock_sema.go b/src/runtime/lock_sema.go
index 08dfd2b664..fcc531ce78 100644
--- a/src/runtime/lock_sema.go
+++ b/src/runtime/lock_sema.go
@@ -262,7 +262,7 @@ func notetsleep_internal(n *note, ns int64, gp *g, deadline int64) bool {
func notetsleep(n *note, ns int64) bool {
gp := getg()
- if gp != gp.m.g0 && gp.m.preemptoff != "" {
+ if gp != gp.m.g0 {
throw("notetsleep not on g0")
}
semacreate(gp.m)