aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2021-09-28 14:35:03 -0400
committerMichael Pratt <mpratt@google.com>2021-09-29 15:23:27 +0000
commitaeb4fbabc0aaa5293dd34821c450855e9ff82230 (patch)
tree10ef1af7034da41590a8194fd085552e7ca66b88
parent3f224bbf9a52cf2e19cdd2ada4a6d7372cc70141 (diff)
downloadgo-aeb4fbabc0aaa5293dd34821c450855e9ff82230.tar.xz
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>
-rw-r--r--src/runtime/mgcmark.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go
index 64f1c79c36..eb5221443e 100644
--- a/src/runtime/mgcmark.go
+++ b/src/runtime/mgcmark.go
@@ -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,