RFR: 8337165: Test jdk/jfr/event/gc/stacktrace/TestG1YoungAllocationPendingStackTrace.java failed: IndexOutOfBoundsException: Index 64 out of bounds for length 64

Erik Gahlin egahlin at openjdk.org
Fri Jul 26 17:45:59 UTC 2024


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

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

Commit messages:
 - Initial

Changes: https://git.openjdk.org/jdk/pull/20360/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20360&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337165
  Stats: 31 lines in 10 files changed: 20 ins; 1 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/20360.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20360/head:pull/20360

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


More information about the hotspot-gc-dev mailing list