2025-02-03 10:25:05 -05:00
|
|
|
## Runtime {#runtime}
|
2025-01-31 15:03:15 -08:00
|
|
|
|
|
|
|
|
<!-- go.dev/issue/71517 -->
|
|
|
|
|
|
|
|
|
|
The message printed when a program exits due to an unhandled panic
|
|
|
|
|
that was recovered and re-raised no longer repeats the text of
|
|
|
|
|
the panic value.
|
|
|
|
|
|
|
|
|
|
Previously, a program which panicked with `panic("PANIC")`,
|
|
|
|
|
recovered the panic, and then re-panicked with the original
|
|
|
|
|
value would print:
|
|
|
|
|
|
|
|
|
|
panic: PANIC [recovered]
|
|
|
|
|
panic: PANIC
|
|
|
|
|
|
|
|
|
|
This program will now print:
|
|
|
|
|
|
|
|
|
|
panic: PANIC [recovered, reraised]
|
2025-03-07 13:53:34 -05:00
|
|
|
|
|
|
|
|
<!-- go.dev/issue/71546 -->
|
|
|
|
|
|
|
|
|
|
On Linux systems with kernel support for anonymous VMA names
|
|
|
|
|
(`CONFIG_ANON_VMA_NAME`), the Go runtime will annotate anonymous memory
|
|
|
|
|
mappings with context about their purpose. e.g., `[anon: Go: heap]` for heap
|
|
|
|
|
memory. This can be disabled with the [GODEBUG setting](/doc/godebug)
|
|
|
|
|
`decoratemappings=0`.
|