aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/export_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-09-13 14:19:23 -0400
committerRuss Cox <rsc@golang.org>2013-09-13 14:19:23 -0400
commit439f9397fc3ef260a74a64e0b0efb071a066b321 (patch)
treefdad7daa8cae441c1a753fb695a11c17dc8fa404 /src/pkg/runtime/export_test.go
parent7fb3d8e45e523ceffd6eb748a3b9b0bf11a65ffd (diff)
downloadgo-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.go2
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