1
0
mirror of https://github.com/golang/go synced 2024-11-20 06:14:53 -07:00

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>
This commit is contained in:
Matthew Dempsky 2015-07-15 13:27:30 -07:00
parent 2e4b659954
commit 64e53337af

View File

@ -83,7 +83,8 @@ import "unsafe"
// into to the stack. Don't do it! Mark termination only re-scans // into to the stack. Don't do it! Mark termination only re-scans
// frames that have potentially been active since the concurrent scan, // frames that have potentially been active since the concurrent scan,
// so it depends on write barriers to track changes to pointers in // 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) { func gcmarkwb_m(slot *uintptr, ptr uintptr) {
if writeBarrierEnabled { if writeBarrierEnabled {
if ptr != 0 && inheap(ptr) { if ptr != 0 && inheap(ptr) {