< prev index next >

test/jdk/jfr/event/compiler/TestCodeCacheFull.java

Print this page
rev 13658 : 8229401: Fix JFR code cache test failures

@@ -37,22 +37,21 @@
 
 /**
  * @test TestCodeCacheFull
  *
  *
- * @library /lib /
+ * @library /lib
  *
- *          jdk.management.jfr
  * @build sun.hotspot.WhiteBox
  * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
  *
  * @run main/othervm -Xbootclasspath/a:.
  *     -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
- *     -XX:+SegmentedCodeCache -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
+ *     -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
  * @run main/othervm -Xbootclasspath/a:.
  *     -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
- *     -XX:-SegmentedCodeCache jdk.jfr.event.compiler.TestCodeCacheFull
+ *     jdk.jfr.event.compiler.TestCodeCacheFull
  */
 public class TestCodeCacheFull {
 
     public static void main(String[] args) throws Exception {
         for (BlobType btype : BlobType.getAvailable()) {

@@ -83,11 +82,11 @@
         Events.assertField(event, "reservedTopAddress").notEqual(0L);
     }
 
     private static BlobType blobTypeFromName(String codeBlobTypeName) throws Exception {
         for (BlobType t : BlobType.getAvailable()) {
-            if (t.beanName.equals(codeBlobTypeName)) {
+            if (t.name.equals(codeBlobTypeName)) {
                 return t;
             }
         }
         throw new Exception("Unexpected event " + codeBlobTypeName);
     }
< prev index next >