RFR: 8373876: StackWalkNativeToJava print more output in case of failures

Martin Doerr mdoerr at openjdk.org
Wed Dec 17 14:17:01 UTC 2025


On Wed, 17 Dec 2025 14:00:09 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> In case of failures the jtreg test StackWalkNativeToJava misses to print the 'bad' output we check. This makes analyzing errors hard, so better enhance the output .
> The other checks ` output.shouldNotContain`   print already the diagnostic summary of output.

Makes sense!

test/hotspot/jtreg/runtime/ErrorHandling/StackWalkNativeToJava.java line 77:

> 75:         }
> 76: 
> 77:         assertTrue(res.length - 1 == 2, res.length - 1);

Now, the check is duplicated. Never mind, it's just a test.

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

Marked as reviewed by mdoerr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28871#pullrequestreview-3587951075
PR Review Comment: https://git.openjdk.org/jdk/pull/28871#discussion_r2627234805


More information about the hotspot-runtime-dev mailing list