aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2025-01-31 15:03:15 -0800
committerDamien Neil <dneil@google.com>2025-02-06 12:02:14 -0800
commit478ad013f90fe1dbb199d22f41b93c920ae0d5e9 (patch)
tree9baaa33c1515d4048dc431d5801aec34e213da1b /src/runtime/runtime2.go
parent9b4a462a7d85753738723402e298039c3424e584 (diff)
downloadgo-478ad013f90fe1dbb199d22f41b93c920ae0d5e9.tar.xz
runtime: don't duplicate reraised panic values in printpanics
Change the output printed when crashing with a reraised panic value to not duplicate that value. Changes output of panicking with "PANIC", recovering, and reraising from: panic: PANIC [recovered] panic: PANIC to: panic: PANIC [recovered, reraised] Fixes #71517 Change-Id: Id59938c4ea0df555b851ffc650fe6f94c0845499 Reviewed-on: https://go-review.googlesource.com/c/go/+/645916 Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index e837c28af8..7280643f48 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -1016,6 +1016,7 @@ type _panic struct {
slotsPtr unsafe.Pointer
recovered bool // whether this panic has been recovered
+ reraised bool // whether this panic was reraised
goexit bool
deferreturn bool
}