]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid inconsistent goroutine state in profiler
authorRuss Cox <rsc@golang.org>
Fri, 13 Sep 2013 18:19:23 +0000 (14:19 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 13 Sep 2013 18:19:23 +0000 (14:19 -0400)
commit439f9397fc3ef260a74a64e0b0efb071a066b321
treefdad7daa8cae441c1a753fb695a11c17dc8fa404
parent7fb3d8e45e523ceffd6eb748a3b9b0bf11a65ffd
runtime: avoid inconsistent goroutine state in profiler

Because profiling signals can arrive at any time, we must
handle the case where a profiling signal arrives halfway
through a goroutine switch. Luckily, although there is much
to think through, very little needs to change.

Fixes #6000.
Fixes #6015.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/13421048
src/pkg/runtime/arch_386.h
src/pkg/runtime/arch_amd64.h
src/pkg/runtime/arch_arm.h
src/pkg/runtime/export_test.c [new file with mode: 0644]
src/pkg/runtime/export_test.go
src/pkg/runtime/pprof/pprof_test.go
src/pkg/runtime/proc.c
src/pkg/runtime/runtime_test.go