Attention needed from Michael Pratt
Liz Fong-Jones has uploaded the change for review![Open in Gerrit]()
Liz Fong-Jones would like Michael Pratt to review this change.
Commit message
runtime: don't describe tracebackcrash as restoring old behavior
GODEBUG=tracebackcrash=1 also throws on an invalid caller PC in
unwinds that tolerated it before Go 1.28, so it does not restore the
old behavior. Just say what it does.
For #80771
Change-Id: I48ac36160f8a658576e43e965820d66a07874cbc
Change diff
diff --git a/src/runtime/extern.go b/src/runtime/extern.go
index ef413fb..af7df77 100644
--- a/src/runtime/extern.go
+++ b/src/runtime/extern.go
@@ -211,9 +211,9 @@
report. This also extends the information returned by runtime.Stack.
Setting N to 0 will report no ancestry information.
- tracebackcrash: setting tracebackcrash=1 restores the pre-Go 1.28 behavior of
- throwing a fatal error on an unrecoverable unwind, even for unwinds such as
- CPU profiling that otherwise tolerate errors and report a truncated stack.
+ tracebackcrash: setting tracebackcrash=1 causes the runtime to throw a fatal
+ error on any unwinding error, even for unwinds such as CPU profiling that
+ otherwise tolerate errors and report a truncated stack.
tracefpunwindoff: setting tracefpunwindoff=1 forces the execution tracer
and block and mutex profilers to use the runtime's default stack
Change information
Change size: XS
Delta: 1 file changed, 3 insertions(+), 3 deletions(-)
Open in GerritRelated details
Attention is currently required from:
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I48ac36160f8a658576e43e965820d66a07874cbc
Gerrit-Change-Number: 840865
Gerrit-PatchSet: 1