diff options
author | Russ Cox <rsc@golang.org> | 2014-10-17 11:23:15 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-10-17 11:23:15 -0400 |
commit | 3ab342d4e6b60fee54d7ed929897beb95fe02a8c (patch) | |
tree | 7c66969ad2bb504d98f6d3ba1984ddfede039a69 /src/runtime/pprof | |
parent | 2b6a5384ea9d474cb6ff7ac7b19db00e03f1f0f3 (diff) | |
download | go-3ab342d4e6b60fee54d7ed929897beb95fe02a8c.tar.gz |
runtime/pprof: fix test
gogo called from GC is okay
for the same reasons that
gogo called from System or ExternalCode is okay.
All three are fake stack traces.
Fixes issue 8408.
LGTM=dvyukov, r
R=r, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/152580043
Diffstat (limited to 'src/runtime/pprof')
-rw-r--r-- | src/runtime/pprof/pprof_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index edd471a0c..8677cb30c 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -249,7 +249,7 @@ func TestGoroutineSwitch(t *testing.T) { // exists to record a PC without a traceback. Those are okay. if len(stk) == 2 { f := runtime.FuncForPC(stk[1]) - if f != nil && (f.Name() == "System" || f.Name() == "ExternalCode") { + if f != nil && (f.Name() == "System" || f.Name() == "ExternalCode" || f.Name() == "GC") { return } } |