]> Cypherpunks repositories - gostls13.git/commit
runtime: do not print recovered when double panic with the same value
authorYoulin Feng <fengyoulin@live.com>
Wed, 29 Oct 2025 05:11:48 +0000 (13:11 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 18 Nov 2025 15:22:50 +0000 (07:22 -0800)
commitc93766007dbb9c975d2f18b7c741f4804ce911c0
tree45c8edbd68ae43d5a55cb3662100fb4d3c104a2a
parent9859b436430aac382b337964a1b380bc4bfcda70
runtime: do not print recovered when double panic with the same value

Show the "[recovered, repanicked]" message only when it is repanicked
after recovered. For the duplicated panics that not recovered, do not
show this message.

Fixes #76099

Change-Id: I87282022ebe44c6f6efbe3239218be4a2a7b1104
Reviewed-on: https://go-review.googlesource.com/c/go/+/716020
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/runtime/crash_test.go
src/runtime/panic.go
src/runtime/testdata/testprog/crash.go