RFR: 8305931: jdk/jfr/jcmd/TestJcmdDumpPathToGCRoots.java failed with "Expected chains but found none"

Erik Gahlin egahlin at openjdk.org
Sun Dec 3 14:16:53 UTC 2023


Could I have a review of a test fix. The test fails intermittently, likely because it's hard to guarantee that old objects are sampled. I have not been able to reproduce locally.

To make the test more reliable, the leaks from the previous subtest is garbage collected before current subtest is started. I also added a retry mechanism.

Testing: 100 * jdk/jfr/jcmd/TestJcmdDumpPathToGCRoots.java

Thank
Erik

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

Commit messages:
 - Initial

Changes: https://git.openjdk.org/jdk/pull/16939/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16939&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8305931
  Stats: 39 lines in 1 file changed: 7 ins; 0 del; 32 mod
  Patch: https://git.openjdk.org/jdk/pull/16939.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16939/head:pull/16939

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


More information about the hotspot-jfr-dev mailing list