RFR: 8278123: serviceability/dcmd/vm/ClassLoaderStatsTest.java failing with java.lang.AssertionError: Should have a hidden class [v3]

Leonid Mesnik lmesnik at openjdk.java.net
Tue May 10 19:21:44 UTC 2022


> 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");

Leonid Mesnik has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:

 - test excluded
 - Merge branch 'master' of https://github.com/openjdk/jdk into 8278123
 - Merge branch 'master' of https://github.com/openjdk/jdk into 8278123
 - Merge branch 'master' of https://github.com/openjdk/jdk into 8278123
 - comment fixed
 - Merge branch 'master' of https://github.com/openjdk/jdk into 8278123
 - fix

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8438/files
  - new: https://git.openjdk.java.net/jdk/pull/8438/files/1e9d05a8..1ee94868

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8438&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8438&range=01-02

  Stats: 132683 lines in 1991 files changed: 112525 ins; 9911 del; 10247 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8438.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8438/head:pull/8438

PR: https://git.openjdk.java.net/jdk/pull/8438


More information about the serviceability-dev mailing list