< prev index next >

test/hotspot/jtreg/serviceability/dcmd/vm/ClassLoaderStatsTest.java

Print this page
rev 58565 : 8238358: Implementation of JEP 371: Hidden Classes
Reviewed-by: duke
Contributed-by: mandy.chung@oracle.com, lois.foltan@oracle.com, david.holmes@oracle.com, harold.seigel@oracle.com, serguei.spitsyn@oracle.com, alex.buckley@oracle.com, jamsheed.c.m@oracle.com
rev 58568 : [mq]: hidden-class-4

@@ -60,13 +60,13 @@
 
   // Expected output from VM.classloader_stats:
     // ClassLoader         Parent              CLD*               Classes   ChunkSz   BlockSz  Type
     // 0x0000000800bd3830  0x000000080037f468  0x00007f001c2ea170       1     10240      4672  ClassLoaderStatsTest$DummyClassLoader
     //                                                                  1      2048      1080   + unsafe anonymous classes
-    //                                                                  1      2048      1088   + hidden weak classes
+    //                                                                  1      2048      1088   + hidden classes
     // 0x0000000000000000  0x0000000000000000  0x00007f00e852d190    1607   4628480   3931216  <boot class loader>
-    //                                                                 38    124928     85856   + hidden weak classes
+    //                                                                 38    124928     85856   + hidden classes
     // 0x00000008003b5508  0x0000000000000000  0x00007f001c2d4760       1      6144      4040  jdk.internal.reflect.DelegatingClassLoader
     // 0x000000080037f468  0x000000080037ee80  0x00007f00e868e3f0     228   1368064   1286672  jdk.internal.loader.ClassLoaders$AppClassLoader
     // ...
 
     static Pattern clLine = Pattern.compile("0x\\p{XDigit}*\\s*0x\\p{XDigit}*\\s*0x\\p{XDigit}*\\s*(\\d*)\\s*(\\d*)\\s*(\\d*)\\s*(.*)");

@@ -192,11 +192,11 @@
     private static final String DIR = System.getProperty("test.classes");
     static Unsafe unsafe = Unsafe.getUnsafe();
 
     static {
         try {
-            // Create a hidden weak class and an anonymous class.
+            // Create a hidden non-strong class and an anonymous class.
             byte[] klassBuf = readClassFile(DIR + File.separator + HCName);
             Class<?> hc = defineHiddenClass(klassBuf);
             Class ac = unsafe.defineAnonymousClass(TestClass.class, klassBuf, new Object[0]);
         } catch (Throwable e) {
             throw new RuntimeException("Unexpected exception in TestClass: " + e.getMessage());
< prev index next >