< prev index next >

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

Print this page
rev 13431 : Fix JFR code cache test failures

*** 37,58 **** /** * @test TestCodeCacheFull * * ! * @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 * @run main/othervm -Xbootclasspath/a:. * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ! * -XX:-SegmentedCodeCache jdk.jfr.event.compiler.TestCodeCacheFull */ public class TestCodeCacheFull { public static void main(String[] args) throws Exception { for (BlobType btype : BlobType.getAvailable()) { --- 37,58 ---- /** * @test TestCodeCacheFull * * ! * @library /lib ! * * * @build sun.hotspot.WhiteBox * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission * * @run main/othervm -Xbootclasspath/a:. * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ! * -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull * @run main/othervm -Xbootclasspath/a:. * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ! * jdk.jfr.event.compiler.TestCodeCacheFull */ public class TestCodeCacheFull { public static void main(String[] args) throws Exception { for (BlobType btype : BlobType.getAvailable()) {
*** 83,93 **** Events.assertField(event, "reservedTopAddress").notEqual(0L); } private static BlobType blobTypeFromName(String codeBlobTypeName) throws Exception { for (BlobType t : BlobType.getAvailable()) { ! if (t.beanName.equals(codeBlobTypeName)) { return t; } } throw new Exception("Unexpected event " + codeBlobTypeName); } --- 83,93 ---- Events.assertField(event, "reservedTopAddress").notEqual(0L); } private static BlobType blobTypeFromName(String codeBlobTypeName) throws Exception { for (BlobType t : BlobType.getAvailable()) { ! if (t.name.equals(codeBlobTypeName)) { return t; } } throw new Exception("Unexpected event " + codeBlobTypeName); }
< prev index next >