]> Cypherpunks repositories - gostls13.git/commit
runtime: say where the compiler knows about var writeBarrier
authorAustin Clements <austin@google.com>
Fri, 7 Apr 2017 22:06:12 +0000 (18:06 -0400)
committerAustin Clements <austin@google.com>
Sun, 9 Apr 2017 23:05:24 +0000 (23:05 +0000)
commit7e1832d06c0dad102e18e8db0c45f5fcc979718e
treea697aa8513a2eacfbe9f8b9e94f6f448d9fba9dd
parent0d33dc3105734dcd262c3104076e05a363b802b1
runtime: say where the compiler knows about var writeBarrier

The runtime.writeBarrier variable tries to be helpful by telling you
that the compiler also knows about this variable, which you could
probably guess, but doesn't say how the compiler knows about it. In
fact, the compiler has a complete copy in builtin/runtime.go that
needs to be kept in sync. Say so.

Change-Id: Ia7fb0c591cb6f9b8230decce01008b417dfcec89
Reviewed-on: https://go-review.googlesource.com/40150
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/mgc.go