Commit 39067c79 authored by Russ Cox's avatar Russ Cox

runtime/pprof: fix arm build after CL 61270043

TBR=dvyukov
CC=golang-codereviews
https://golang.org/cl/62960043
parent 673917f8
...@@ -218,7 +218,7 @@ func TestGoroutineSwitch(t *testing.T) { ...@@ -218,7 +218,7 @@ func TestGoroutineSwitch(t *testing.T) {
// exists to record a PC without a traceback. Those are okay. // exists to record a PC without a traceback. Those are okay.
if len(stk) == 2 { if len(stk) == 2 {
f := runtime.FuncForPC(stk[1]) f := runtime.FuncForPC(stk[1])
if f != nil && f.Name() == "System" { if f != nil && (f.Name() == "System" || f.Name() == "ExternalCode") {
return return
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment