Integrated: 8278123: serviceability/dcmd/vm/ClassLoaderStatsTest.java failing with java.lang.AssertionError: Should have a hidden class

Leonid Mesnik lmesnik at openjdk.java.net
Tue May 10 22:31:51 UTC 2022


On Wed, 27 Apr 2022 23:49:56 GMT, Leonid Mesnik <lmesnik at openjdk.org> 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 <lmesnik at openjdk.org>
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


More information about the serviceability-dev mailing list