From 59122f85bd3a1231dd5b49fa83319d634bc96f23 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 20 Jan 2022 11:17:51 -0500 Subject: [PATCH] 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 --- src/runtime/pprof/pprof_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 } -- 2.48.1