mirror of
https://github.com/golang/go
synced 2024-11-20 04:04:41 -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:
parent
2e4b659954
commit
64e53337af
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user