Skip to content

Commit 64e5333

Browse files
committed
runtime: fix go:nowritebarrier annotation on gcmarkwb_m
Change-Id: I945d46d3bb63f1992bce0d0b1e89e75cac9bbd54 Reviewed-on: https://go-review.googlesource.com/12271 Reviewed-by: Austin Clements <[email protected]> Run-TryBot: Austin Clements <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 2e4b659 commit 64e5333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/mbarrier.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ import "unsafe"
8383
// into to the stack. Don't do it! Mark termination only re-scans
8484
// frames that have potentially been active since the concurrent scan,
8585
// so it depends on write barriers to track changes to pointers in
86-
// stack frames that have not been active. go:nowritebarrier
86+
// stack frames that have not been active.
87+
//go:nowritebarrier
8788
func gcmarkwb_m(slot *uintptr, ptr uintptr) {
8889
if writeBarrierEnabled {
8990
if ptr != 0 && inheap(ptr) {

0 commit comments

Comments
 (0)