From: Michael Pratt Date: Thu, 20 Jan 2022 16:17:51 +0000 (-0500) Subject: runtime/pprof: allow labels on racecall in TestLabelSystemstack X-Git-Tag: go1.18beta2~60 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=59122f85bd3a1231dd5b49fa83319d634bc96f23;p=gostls13.git runtime/pprof: allow labels on racecall in TestLabelSystemstack Fixes #50705. Change-Id: I85857f836cbe58447625df6cd56756d3a69880ff Reviewed-on: https://go-review.googlesource.com/c/go/+/379834 Trust: Michael Pratt Run-TryBot: Michael Pratt Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot --- diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index 54604598cc..19b9754e8b 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -1462,13 +1462,13 @@ func TestLabelSystemstack(t *testing.T) { // runtime.isSystemGoroutine). These // should never be labeled. mustNotBeLabeled = true - case "gogo", "gosave_systemstack_switch": - // These are context switch critical - // that we can't do a full traceback - // from. Typically this would be - // covered by the runtime check below, - // but these symbols don't have the - // package name. + case "gogo", "gosave_systemstack_switch", "racecall": + // These are context switch/race + // critical that we can't do a full + // traceback from. Typically this would + // be covered by the runtime check + // below, but these symbols don't have + // the package name. mayBeLabeled = true }