diff options
| author | Russ Cox <rsc@golang.org> | 2013-09-13 14:19:23 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-09-13 14:19:23 -0400 |
| commit | 439f9397fc3ef260a74a64e0b0efb071a066b321 (patch) | |
| tree | fdad7daa8cae441c1a753fb695a11c17dc8fa404 /src/pkg/runtime/export_test.go | |
| parent | 7fb3d8e45e523ceffd6eb748a3b9b0bf11a65ffd (diff) | |
| download | go-439f9397fc3ef260a74a64e0b0efb071a066b321.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/export_test.go')
| -rw-r--r-- | src/pkg/runtime/export_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/export_test.go b/src/pkg/runtime/export_test.go index bc66fcc3cd..01d0ed667f 100644 --- a/src/pkg/runtime/export_test.go +++ b/src/pkg/runtime/export_test.go @@ -79,3 +79,5 @@ var StringHash = stringHash var BytesHash = bytesHash var Int32Hash = int32Hash var Int64Hash = int64Hash + +func GogoBytes() int32 |
