]> Cypherpunks repositories - gostls13.git/commit
runtime/race: more precise handling of finalizers
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 14 Nov 2012 12:58:10 +0000 (16:58 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 14 Nov 2012 12:58:10 +0000 (16:58 +0400)
commit063c13a34cd64de8fe2577279be915ef7c33ab1f
treec4286ed0384b0d43663bc0bea3f1422fb86a08fb
parent51e89f59b24d91829184ed0f48a82471c7ebb366
runtime/race: more precise handling of finalizers
Currently race detector runtime just disables race detection in the finalizer goroutine.
It has false positives when a finalizer writes to shared memory -- the race with finalizer is reported in a normal goroutine that accesses the same memory.
After this change I am going to synchronize the finalizer goroutine with the rest of the world in racefingo(). This is closer to what happens in reality and so
does not have false positives.
And also add README file with instructions how to build the runtime.

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/6810095
src/pkg/runtime/mgc0.c
src/pkg/runtime/race/README [new file with mode: 0644]
src/pkg/runtime/race/race_darwin_amd64.syso
src/pkg/runtime/race/race_linux_amd64.syso
src/pkg/runtime/race/race_windows_amd64.syso