From: Damien Neil Date: Mon, 22 Sep 2025 22:15:40 +0000 (-0700) Subject: runtime: don't report non-blocked goroutines as "(durable)" in stacks X-Git-Tag: go1.26rc1~814 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7e0251bf58;p=gostls13.git 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 --- 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)