[jdk19] Integrated: 8291524: jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java Value not equal to 2, field='hiddenClassCount', value='0'
Erik Gahlin
egahlin at openjdk.org
Tue Aug 2 14:44:36 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/ + 100 times test/jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java
>
> Thanks
> Erik
This pull request has now been integrated.
Changeset: 54c093ab
Author: Erik Gahlin <egahlin at openjdk.org>
URL: https://git.openjdk.org/jdk19/commit/54c093ab0e71cfa80e62e54c5cb7aa12059e821b
Stats: 10 lines in 2 files changed: 4 ins; 0 del; 6 mod
8291524: jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java Value not equal to 2, field='hiddenClassCount', value='0'
Reviewed-by: hseigel
-------------
PR: https://git.openjdk.org/jdk19/pull/158
More information about the hotspot-jfr-dev
mailing list