RFR: 8377138: VMError::report should handle out-of-stackbounds errors gracefully

Stefan Karlsson stefank at openjdk.org
Wed Feb 4 13:10:48 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.

Marked as reviewed by stefank (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/29558#pullrequestreview-3750977638


More information about the hotspot-dev mailing list