[jdk19] RFR: 8291524: jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java Value not equal to 2, field='hiddenClassCount', value='0'
Harold Seigel
hseigel at openjdk.org
Tue Aug 2 14:35:06 UTC 2022
On Mon, 1 Aug 2022 14:53:33 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> Could I have a review of change that fixes an intermittent test failure. The classes are garbage collected before they are being recorded by JFR. The fix is to add a hard reference to them. I also added a call to System.gc() to ensure the test is not sensitive to garbage collections.
>
> Testing: test/jdk/jdk/jfr/ and test/jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java
>
> Thanks
> Erik
Changes look good!
Thanks, Harold
-------------
Marked as reviewed by hseigel (Reviewer).
PR: https://git.openjdk.org/jdk19/pull/158
More information about the hotspot-jfr-dev
mailing list