]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: allow labels on racecall in TestLabelSystemstack
authorMichael Pratt <mpratt@google.com>
Thu, 20 Jan 2022 16:17:51 +0000 (11:17 -0500)
committerMichael Pratt <mpratt@google.com>
Thu, 20 Jan 2022 16:31:11 +0000 (16:31 +0000)
Fixes #50705.

Change-Id: I85857f836cbe58447625df6cd56756d3a69880ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/379834
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/runtime/pprof/pprof_test.go

index 54604598cc02c3d1780e6b7b114858b94b7635c8..19b9754e8b65e19713be98128adb500fcc57447e 100644 (file)
@@ -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
                                }