From 64e53337affd08900abfac9039322621d5373493 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 15 Jul 2015 13:27:30 -0700 Subject: [PATCH] runtime: fix go:nowritebarrier annotation on gcmarkwb_m Change-Id: I945d46d3bb63f1992bce0d0b1e89e75cac9bbd54 Reviewed-on: https://go-review.googlesource.com/12271 Reviewed-by: Austin Clements Run-TryBot: Austin Clements TryBot-Result: Gobot Gobot --- src/runtime/mbarrier.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {