JDK-8230932 : Add support in dcmd for hidden classes
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: repo-valhalla
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-09-12
  • Updated: 2020-01-03
  • Resolved: 2020-01-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaFixed
Related Reports
Duplicate :  
Relates :  
Description
Investigate what dcmd support is needed for hidden classes.

serviceability/dcmd/vm/ClassLoaderStatsTest.java fails in the nestmates branch.

Comments
Fixed with the following push: Changeset: 5badb551e411 Author: hseigel Date: 2020-01-03 14:10 +0000 URL: https://hg.openjdk.java.net/valhalla/valhalla/rev/5badb551e411 8230932: Add support in dcmd for hidden classes Summary: Add dcmd support for weak hidden classes Reviewed-by: fparain, sspitsyn ! src/hotspot/share/classfile/classLoaderHierarchyDCmd.cpp ! src/hotspot/share/classfile/classLoaderStats.cpp ! src/hotspot/share/classfile/classLoaderStats.hpp ! test/hotspot/jtreg/ProblemList.txt ! test/hotspot/jtreg/serviceability/dcmd/vm/ClassLoaderHierarchyTest.java ! test/hotspot/jtreg/serviceability/dcmd/vm/ClassLoaderStatsTest.java ! test/jdk/jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java
03-01-2020

The test fails with: Hello Running DCMD 'VM.classloader_stats' through 'JMXExecutor' ---------------- stdout ---------------- ClassLoader Parent CLD* Classes ChunkSz BlockSz Type 0x00000007c01c0040 0x00000007c0011978 0x00007f27680aa770 2 6144 3856 ClassLoaderStatsTest$DummyClassLoader 0x00000007c00cece0 0x00000007c0011978 0x00007f28202b5730 5 86016 22200 java.net.URLClassLoader 0x00000007c000afd8 0x0000000000000000 0x00007f27680a59a0 1 6144 4064 jdk.internal.reflect.DelegatingClassLoader 0x00000007c019b840 0x00000007c019b840 0x00007f27680a34d0 2 6144 3856 ClassLoaderHierarchyTest$TestClassLoader 0x00000007c019b840 0x0000000000000000 0x00007f27680a6870 2 6144 3856 ClassLoaderHierarchyTest$TestClassLoader 0x00000007c019b840 0x0000000000000000 0x00007f276809ce00 2 6144 3856 ClassLoaderHierarchyTest$TestClassLoader 0x00000007c00cece0 0x00000007c0011978 0x00007f28200abe30 8 88064 44064 java.net.URLClassLoader 0x0000000000000000 0x0000000000000000 0x00007f28204904a0 2234 15392768 15309600 <boot class loader> 63 220160 152472 + unsafe anonymous classes 0x00000007c00cece0 0x00000007c0011978 0x00007f28201078c0 12 90112 48232 java.net.URLClassLoader 0x00000007c000afd8 0x0000000000000000 0x00007f27782c7c60 1 6144 4032 jdk.internal.reflect.DelegatingClassLoader 0x00000007c00cece0 0x00000007c0011978 0x00007f28201069d0 10 90112 46360 java.net.URLClassLoader 0x00000007c00cece0 0x00000007c0011978 0x00007f2820ac64f0 61 450560 403568 java.net.URLClassLoader 0x00000007c0011978 0x00000007c0011cd0 0x00007f28208536a0 265 1499136 1489376 jdk.internal.loader.ClassLoaders$AppClassLoader 0x00000007c0011cd0 0x0000000000000000 0x00007f2820851510 22 188416 121656 jdk.internal.loader.ClassLoaders$PlatformClassLoader Total = 14 2690 18142208 17661048 ChunkSz: Total size of all allocated metaspace chunks BlockSz: Total size of all allocated metaspace blocks (each chunk has several blocks) ---------------- stderr ---------------- ---------------------------------------- line: 0x00000007c01c0040 0x00000007c0011978 0x00007f27680aa770 2 6144 3856 ClassLoaderStatsTest$DummyClassLoader test ClassLoaderStatsTest.jmx(): failure java.lang.AssertionError: Should have loaded 1 class: 0x00000007c01c0040 0x00000007c0011978 0x00007f27680aa770 2 6144 3856 ClassLoaderStatsTest$DummyClassLoader at org.testng.Assert.fail(Assert.java:94) at ClassLoaderStatsTest.run(ClassLoaderStatsTest.java:89) at ClassLoaderStatsTest.jmx(ClassLoaderStatsTest.java:162) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) at org.testng.internal.Invoker.invokeMethod(Invoker.java:639) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:773) at org.testng.TestRunner.run(TestRunner.java:623) at org.testng.SuiteRunner.runTest(SuiteRunner.java:357) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310) at org.testng.SuiteRunner.run(SuiteRunner.java:259) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185) at org.testng.TestNG.runSuitesLocally(TestNG.java:1110) at org.testng.TestNG.run(TestNG.java:1018) at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298) at java.base/java.lang.Thread.run(Thread.java:830)
12-09-2019

Please update test/hotspot/jtreg/ProblemList.txt when this issue is resolved.
12-09-2019