]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix go:nowritebarrier annotation on gcmarkwb_m
authorMatthew Dempsky <mdempsky@google.com>
Wed, 15 Jul 2015 20:27:30 +0000 (13:27 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 15 Jul 2015 21:06:13 +0000 (21:06 +0000)
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>

src/runtime/mbarrier.go

index b83955b112489a7041688eedf4372373bf4da6ce..0dbe1ffc9de7bda2f74566a954450e923e724f8a 100644 (file)
@@ -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) {