mirror of
https://github.com/golang/go
synced 2024-10-04 15:09:59 +00:00
runtime: drop nowritebarrier from gcParkAssist
Nothing in this function is at odds with having write barriers. It originally inherited the annotation from gcAssistAlloc http://golang.org/cl/30700, which subsequently dropped the annotation in http://golang.org/cl/32431 as it was unnecessary. Change-Id: Ie464e6b4ed957f57e922ec043728ff4e15bf35ad Reviewed-on: https://go-review.googlesource.com/c/go/+/352811 Trust: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
3f224bbf9a
commit
aeb4fbabc0
|
@ -587,8 +587,6 @@ func gcWakeAllAssists() {
|
|||
//
|
||||
// gcParkAssist reports whether the assist is now satisfied. If it
|
||||
// returns false, the caller must retry the assist.
|
||||
//
|
||||
//go:nowritebarrier
|
||||
func gcParkAssist() bool {
|
||||
lock(&work.assistQueue.lock)
|
||||
// If the GC cycle finished while we were getting the lock,
|
||||
|
|
Loading…
Reference in a new issue