]> Cypherpunks repositories - gostls13.git/commit
runtime: race instrument read of convT2E/I arg
authorDmitry Vyukov <dvyukov@google.com>
Fri, 18 Sep 2015 09:40:36 +0000 (11:40 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Sat, 19 Sep 2015 10:26:36 +0000 (10:26 +0000)
commit9172a1b5738bf55b4d2b6f045cf40cae24c081f1
tree936e33d889973e1d6a11be67410971bb5ed500c4
parente31114dab0bac5c6104385d651c69462421801ee
runtime: race instrument read of convT2E/I arg

Sometimes this read is instrumented by compiler when it creates
a temp to take address, but sometimes it is not (e.g. for global vars
compiler takes address of the global directly).

Instrument convT2E/I similarly to chansend and mapaccess.

Fixes #12664

Change-Id: Ia7807f15d735483996426c5f3aed60a33b279579
Reviewed-on: https://go-review.googlesource.com/14752
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/iface.go
src/runtime/race/testdata/issue12664_test.go [new file with mode: 0644]