]> Cypherpunks repositories - gostls13.git/commit
runtime: fix race detector running Go code on g0 of non-main thread
authorRuss Cox <rsc@golang.org>
Tue, 2 Sep 2014 01:55:57 +0000 (21:55 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 2 Sep 2014 01:55:57 +0000 (21:55 -0400)
commit649c83530a9c3a71319ed3d2ff53d9ecf2f2fd04
treea90eaba529e9162d0ba91a2baeed6f8013abc4ff
parent5dd9d582f175701fbf461c2e5ca6bbb1021cbd25
runtime: fix race detector running Go code on g0 of non-main thread

It looks like this has just always been broken:
the race detector handles running Go code on g0 of the main thread
and on g0 of any extra threads created by non-Go code, but it does
not handle running Go code on g0 of non-main threads created by Go.
Handle that.

Should fix the race build failures on the dashboard.

We're running into this now because we are running more
and more Go code on g0.

TBR=dvyukov
CC=golang-codereviews
https://golang.org/cl/137910043
src/pkg/runtime/proc.c