< prev index next >
test/compiler/whitebox/ForceNMethodSweepTest.java
Print this page
@@ -32,11 +32,11 @@
import jdk.test.lib.InfiniteLoop;
import compiler.whitebox.CompilerWhiteBoxTest;
/*
* @test
- * @bug 8059624 8064669
+ * @bug 8059624 8064669 8153265
* @library /testlibrary /test/lib /
* @modules java.management
* @build ForceNMethodSweepTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
@@ -58,10 +58,16 @@
blobTypes = BlobType.getAvailable();
}
@Override
protected void test() throws Exception {
+ // prime the asserts: get their bytecodes loaded, any lazy computation
+ // resolved, and executed once
+ Asserts.assertGT(1, 0, "message");
+ Asserts.assertLTE(0, 0, "message");
+ Asserts.assertLT(-1, 0, "message");
+
checkNotCompiled();
guaranteedSweep();
int usage = getTotalUsage();
compile();
< prev index next >