RFR: 8337165: Test jdk/jfr/event/gc/stacktrace/TestG1YoungAllocationPendingStackTrace.java failed: IndexOutOfBoundsException: Index 64 out of bounds for length 64
Paul Hohensee
phh at openjdk.org
Fri Jul 26 19:07:31 UTC 2024
On Fri, 26 Jul 2024 17:23:32 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> Could I have a review of a test fix that increases the stack depth for the AllocationRequiringGC event?
>
> The problem occurs if the number of frames JFR reports is 64, which can happen with lots of lambda frames. The test then finds a match at the last frame (index 63) and tries to match against the next frame, which leads to an IndexOutOfBoundsException.
>
> By increasing the stack depth to 256, the stack trace will not be truncated, and the matching of two consecutive frames can happen.
>
> Testing: 100 * jdk/jfr/event/gc/stacktrace/*
>
> Thanks
> Erik
Marked as reviewed by phh (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/20360#pullrequestreview-2202576389
More information about the hotspot-gc-dev
mailing list