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

Thomas Stuefe stuefe at openjdk.org
Thu Feb 5 12:46:55 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.

This pull request has now been integrated.

Changeset: 37b49b29
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/37b49b29a724c2c3c30890ba7a46c4aece71a0fe
Stats:     9 lines in 1 file changed: 5 ins; 0 del; 4 mod

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

Reviewed-by: lucy, stefank, mdoerr

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

PR: https://git.openjdk.org/jdk/pull/29558


More information about the hotspot-dev mailing list