From 7e0251bf584c5fe79e95b9c460c7d60a7199d0ae Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Mon, 22 Sep 2025 15:15:40 -0700 Subject: [PATCH] runtime: don't report non-blocked goroutines as "(durable)" in stacks 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 Auto-Submit: Damien Neil Reviewed-by: Michael Pratt --- src/runtime/traceback.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 00c0f08e55..00eac59201 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -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) -- 2.52.0