RFR: 8312526: Test dk/jfr/event/oldobject/TestHeapDeep.java failed: Could not find ChainNode

Erik Gahlin egahlin at openjdk.org
Tue Jul 25 20:22:15 UTC 2023


Could I have a review of a test fix?

The test creates a ChainNode object and adds 100 byte arrays to it. Then a long linked list of ChainNodes are created so the byte arrays are at the end. The test then tries to verify that there are at least one old object sample of type byte[] and that the reference chain back to the GC root is not too long.

Problem is, there is no old object samples of type byte[], only those of type jdk.jfr.event.oldobject.TestHeapDeep$ChainNode. Fix is to loop until we found a sample and then verify the chain. 

Testing: 100 * test/jdk/jdk/jfr/event/oldobject/TestHeapDeap.java

Thanks
Erik

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

Commit messages:
 - Initial

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

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


More information about the hotspot-jfr-dev mailing list