]> Cypherpunks repositories - gostls13.git/commit
runtime: fix data race during Itab hash update/lookup
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 13 Jul 2011 18:22:41 +0000 (11:22 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jul 2011 18:22:41 +0000 (11:22 -0700)
commit86a659cad03b98d1921d72e3cf459bcd189ae0ec
tree8833872c2c4c52d1d1100d38ebae4d5b81b8b106
parentdcdaeebdfb233758f7c22c2cad9c0e41dac765a6
runtime: fix data race during Itab hash update/lookup
The data race is on newly published Itab nodes, which are
both unsafely published and unsafely acquired. It can
break on IA-32/Intel64 due to compiler optimizations
(most likely not an issue as of now) and on ARM due to
hardware memory access reorderings.

R=rsc
CC=golang-dev
https://golang.org/cl/4673055
src/pkg/runtime/386/asm.s
src/pkg/runtime/386/atomic.c
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/amd64/atomic.c
src/pkg/runtime/arm/atomic.c
src/pkg/runtime/iface.c
src/pkg/runtime/runtime.h