RFR: 8377138: VMError::report should handle out-of-stackbounds errors gracefully
Thomas Stuefe
stuefe at openjdk.org
Wed Feb 4 13:56:15 UTC 2026
On Wed, 4 Feb 2026 13:07:36 GMT, Stefan Karlsson <stefank 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).
Thanks, @stefank .
I'll wait the obligatory 24hrs, then commit tomorrow morning.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29558#issuecomment-3847594876
More information about the hotspot-dev
mailing list