RFR: 8377138: VMError::report should handle out-of-stackbounds errors gracefully
Lutz Schmidt
lucy at openjdk.org
Wed Feb 4 11:41:49 UTC 2026
On Wed, 4 Feb 2026 07:15:14 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Tiny fix for minor issue during error reporting:
>
> We print the stack bounds, the stack pointer, and the free space left on the stack. The latter we calculate using pointer_delta. That function asserts for negative deltas. Assertions in error reporting are not great. They work, but are of limited use ("Error occurred during error reporting"), and push a new activation frame, using up more stack space.
>
> Patch avoids that assert and highlights the out of bounds issue.
Looks good. And helpful.
-------------
Marked as reviewed by lucy (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29558#pullrequestreview-3750555159
More information about the hotspot-dev
mailing list