aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-07-15 13:27:30 -0700
committerMatthew Dempsky <mdempsky@google.com>2015-07-15 21:06:13 +0000
commit64e53337affd08900abfac9039322621d5373493 (patch)
tree151138252659b1a954081c78b9b66631dd3f1f8e
parent2e4b6599541a92b76857ca546679a8d304730b10 (diff)
downloadgo-64e53337affd08900abfac9039322621d5373493.tar.gz
go-64e53337affd08900abfac9039322621d5373493.zip
runtime: fix go:nowritebarrier annotation on gcmarkwb_m
Change-Id: I945d46d3bb63f1992bce0d0b1e89e75cac9bbd54 Reviewed-on: https://go-review.googlesource.com/12271 Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/runtime/mbarrier.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/mbarrier.go b/src/runtime/mbarrier.go
index b83955b112..0dbe1ffc9d 100644
--- a/src/runtime/mbarrier.go
+++ b/src/runtime/mbarrier.go
@@ -83,7 +83,8 @@ import "unsafe"
// into to the stack. Don't do it! Mark termination only re-scans
// frames that have potentially been active since the concurrent scan,
// so it depends on write barriers to track changes to pointers in
-// stack frames that have not been active. go:nowritebarrier
+// stack frames that have not been active.
+//go:nowritebarrier
func gcmarkwb_m(slot *uintptr, ptr uintptr) {
if writeBarrierEnabled {
if ptr != 0 && inheap(ptr) {