]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: add //go:nowritebarrier to diagnose unintended write barriers
authorRuss Cox <rsc@golang.org>
Tue, 9 Dec 2014 15:15:18 +0000 (10:15 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 12 Dec 2014 20:48:10 +0000 (20:48 +0000)
commit557a61d270f101c0983e6aca9b271cc854526d28
tree9dcacbd28e9dbccb90e6047c351e9d9d38cd49bf
parent2fa657c5d618c24ab306075a1415c9a0ca96c44a
cmd/gc: add //go:nowritebarrier to diagnose unintended write barriers

//go:nowritebarrier can only be used in package runtime.
It does not disable write barriers; it is an assertion, checked
by the compiler, that the following function needs no write
barriers.

Change-Id: Id7978b779b66dc1feea39ee6bda9fd4d80280b7c
Reviewed-on: https://go-review.googlesource.com/1224
Reviewed-by: Rick Hudson <rlh@golang.org>
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/lex.c
src/cmd/gc/walk.c
src/cmd/gc/y.tab.c
src/runtime/mgc.go
src/runtime/proc1.go