]> Cypherpunks repositories - gostls13.git/commit
runtime: fix data race in findfunc()
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 29 Jul 2011 17:47:24 +0000 (13:47 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 29 Jul 2011 17:47:24 +0000 (13:47 -0400)
commit91f0f18100564478f77c6fc8e16ea56f9528951c
tree896657acbedd11f0ca7203c2b582b73a22252668
parenteb2b3f5dc74181b66848bef194bfd0ec1401345c
runtime: fix data race in findfunc()
The data race can lead to reads of partially
initialized concurrently mutated symbol data.
The change also adds a simple sanity test
for Caller() and FuncForPC().

R=rsc
CC=golang-dev
https://golang.org/cl/4817058
src/pkg/runtime/386/asm.s
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/arm/atomic.c
src/pkg/runtime/runtime.h
src/pkg/runtime/symtab.c
src/pkg/runtime/symtab_test.go [new file with mode: 0644]