]> Cypherpunks repositories - gostls13.git/commit
runtime: fix crash during cpu profiling
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 10 Feb 2014 16:24:47 +0000 (20:24 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 10 Feb 2014 16:24:47 +0000 (20:24 +0400)
commit373e1e94d8bf4985bb1e0452d95ed500106dc631
tree3bca82f3b1944c3400647311f7ce64484f6bd084
parente56e4e01935be3c310e5767e90411c76aaa1690d
runtime: fix crash during cpu profiling
mp->mcache can be concurrently modified by runtimeĀ·helpgc.
In such case sigprof can remember mcache=nil, then helpgc sets it to non-nil,
then sigprof restores it back to nil, GC crashes with nil mcache.

R=rsc
CC=golang-codereviews
https://golang.org/cl/58860044
src/pkg/runtime/proc.c