]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,runtime: update instrumentation comments
authorAustin Clements <austin@google.com>
Mon, 30 Oct 2017 20:06:19 +0000 (16:06 -0400)
committerAustin Clements <austin@google.com>
Tue, 31 Oct 2017 14:03:10 +0000 (14:03 +0000)
commit52cf91a5d5d074d8857f1b7be0fe1bc380ed4869
treeb676993892380b3c9cb6377d927ba9872c789f81
parent5536180ae72e8745c8a831e03f56a86360d76c52
cmd/compile,runtime: update instrumentation comments

The compiler's instrumentation pass has some out-of-date comments
about the write barrier and some confusing comments about
typedslicecopy. Update these comments and add a comment to
typedslicecopy explaining why it's manually instrumented while none of
the other operations are.

Change-Id: I024e5361d53f1c3c122db0c85155368a30cabd6b
Reviewed-on: https://go-review.googlesource.com/74430
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/racewalk.go
src/runtime/mbarrier.go