diff --git a/src/runtime/lock_futex.go b/src/runtime/lock_futex.go index 1765a6ce66..768fd5769f 100644 --- a/src/runtime/lock_futex.go +++ b/src/runtime/lock_futex.go @@ -144,7 +144,11 @@ func notesleep(n *note) { } } +// May run with m.p==nil if called from notetsleep, so write barriers +// are not allowed. +// //go:nosplit +//go:nowritebarrier func notetsleep_internal(n *note, ns int64) bool { gp := getg()