]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: don't report non-blocked goroutines as "(durable)" in stacks
authorDamien Neil <dneil@google.com>
Mon, 22 Sep 2025 22:15:40 +0000 (15:15 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 23 Sep 2025 15:52:35 +0000 (08:52 -0700)
Only append the " (durable)" suffix to a goroutine's status
when the goroutine is waiting.

Avoids reporting a goroutine as "runnable (durable)".

Change-Id: Id679692345afab6e63362ca3eeff16808367e50f
Reviewed-on: https://go-review.googlesource.com/c/go/+/705995
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/traceback.go

index 00c0f08e5593c813f78e4c626fe06d66c03aed0e..00eac5920139d55ec5966b163be6de2d08adabe0 100644 (file)
@@ -1249,6 +1249,7 @@ func goroutineheader(gp *g) {
                print(" (scan)")
        }
        if bubble := gp.bubble; bubble != nil &&
+               gpstatus == _Gwaiting &&
                gp.waitreason.isIdleInSynctest() &&
                !stringslite.HasSuffix(status, "(durable)") {
                // If this isn't a status where the name includes a (durable)