RFR: 8377138: VMError::report should handle out-of-stackbounds errors gracefully
Thomas Stuefe
stuefe at openjdk.org
Wed Feb 4 11:30:47 UTC 2026
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.
-------------
Commit messages:
- start
Changes: https://git.openjdk.org/jdk/pull/29558/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29558&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8377138
Stats: 9 lines in 1 file changed: 5 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/29558.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29558/head:pull/29558
PR: https://git.openjdk.org/jdk/pull/29558
More information about the hotspot-dev
mailing list