]> Cypherpunks repositories - gostls13.git/commit
runtime: fix race instrumentation of append
authorDmitry Vyukov <dvyukov@google.com>
Tue, 10 Feb 2015 12:26:07 +0000 (15:26 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 12 Feb 2015 08:51:49 +0000 (08:51 +0000)
commited8cc5cf9bfa9ba6b3ec84ba10028aa0366e0c0c
tree1196910384386817ced930ac82961a26a0fa953e
parentc1bbf0a2eac5a6ad71debb050cd46384649fcb04
runtime: fix race instrumentation of append

typedslicecopy is another write barrier that is not
understood by racewalk. It seems quite complex to handle it
in the compiler, so instead just instrument it in runtime.

Update #9796

Change-Id: I0eb6abf3a2cd2491a338fab5f7da22f01bf7e89b
Reviewed-on: https://go-review.googlesource.com/4370
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/gc/racewalk.c
src/runtime/mbarrier.go
src/runtime/race/testdata/slice_test.go