On Wed, 27 Apr 2022 23:49:56 GMT, Leonid Mesnik <[email protected]> wrote:
> The test failed if GC happens somewhere between
> Class<?> c = Class.forName("TestClass", true, dummyloader);
> and
> OutputAnalyzer output = executor.execute("VM.classloader_stats");
>
> The fix is to make hc static as Chris proposed.
>
> To verfiy fix I add System.gc() before
> executor.execute("VM.classloader_stats");
This pull request has now been integrated.
Changeset: aaeb08ec
Author: Leonid Mesnik <[email protected]>
URL:
https://git.openjdk.java.net/jdk/commit/aaeb08eca422776eef5955473734aad75cb2829a
Stats: 6 lines in 2 files changed: 1 ins; 2 del; 3 mod
8278123: serviceability/dcmd/vm/ClassLoaderStatsTest.java failing with
java.lang.AssertionError: Should have a hidden class
Reviewed-by: cjplummer
-------------
PR: https://git.openjdk.java.net/jdk/pull/8438