diff options
| author | Damien Neil <dneil@google.com> | 2025-09-22 15:15:40 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-23 08:52:35 -0700 |
| commit | 7e0251bf584c5fe79e95b9c460c7d60a7199d0ae (patch) | |
| tree | 00b1b985fb34d790d966c66d2d1f9c16ad5df573 /src/runtime | |
| parent | 22ac328856ae4c0dcd3d770f50aac5a2df498989 (diff) | |
| download | go-7e0251bf584c5fe79e95b9c460c7d60a7199d0ae.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/traceback.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
