mirror of
https://github.com/golang/go.git
synced 2025-05-18 13:54:40 +00:00
runtime: make notetsleep_internal nowritebarrier
When notetsleep_internal is called from notetsleepg, notetsleepg has just given up the P, so write barriers are not allowed in notetsleep_internal. Change-Id: I1b214fa388b1ea05b8ce2dcfe1c0074c0a3c8870 Reviewed-on: https://go-review.googlesource.com/12647 Reviewed-by: Rick Hudson <rlh@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
cf225a1748
commit
dff9108d98
@ -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:nosplit
|
||||||
|
//go:nowritebarrier
|
||||||
func notetsleep_internal(n *note, ns int64) bool {
|
func notetsleep_internal(n *note, ns int64) bool {
|
||||||
gp := getg()
|
gp := getg()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user