]> Cypherpunks repositories - gostls13.git/commit
runtime: fix deadlock detector false negative
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 12 Mar 2013 13:21:44 +0000 (17:21 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 12 Mar 2013 13:21:44 +0000 (17:21 +0400)
commit6ee739d7e9473d772a371e6f774a424bfcbbb0fc
tree439135a79edbd1e0072cba8857be10e02f0d7fa0
parent7f070af515b40fd1e7f1576b2327779df56fb782
runtime: fix deadlock detector false negative
The issue was that scvg is assigned *after* the scavenger goroutine is started,
so when the scavenger calls entersyscall() the g==scvg check can fail.
Fixes #5025.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7629045
src/pkg/runtime/mheap.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h