[go] runtime: do not print repanicked when the panic is not recovered

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Nov 18, 2025, 10:22:56 AM (3 days ago) Nov 18
to Youlin Feng, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Pratt, Junyang Shao, Michael Knyszek, Go LUCI, Carlos Amedee, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
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-by: Michael Knyszek <mkny...@google.com>
Reviewed-by: Junyang Shao <shaoj...@google.com>
Auto-Submit: Michael Pratt <mpr...@google.com>
Files:
  • M src/runtime/crash_test.go
  • M src/runtime/panic.go
  • M src/runtime/testdata/testprog/crash.go
Change size: S
Delta: 3 files changed, 21 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Michael Knyszek, +1 by Junyang Shao
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I87282022ebe44c6f6efbe3239218be4a2a7b1104
Gerrit-Change-Number: 716020
Gerrit-PatchSet: 7
Gerrit-Owner: Youlin Feng <fengy...@live.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Youlin Feng <fengy...@live.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages