# HG changeset patch # User shade # Date 1459929346 -10800 # Node ID 4fa831d0f4bf2a8fd31d404704ea4d021261ca93 # Parent 1dc6c6f21231884d16e8e26decde9f0034209126 8153265: [TESTBUG] compiler/whitebox/ForceNMethodSweepTest should not assume asserts are benign Reviewed-by: twisti, ikrylov diff -r 1dc6c6f21231 -r 4fa831d0f4bf hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java --- a/hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java Wed Apr 06 10:29:26 2016 -0700 +++ b/hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java Wed Apr 06 10:55:46 2016 +0300 @@ -34,7 +34,7 @@ /* * @test - * @bug 8059624 8064669 + * @bug 8059624 8064669 8153265 * @library /testlibrary /test/lib / * @modules java.management * @build ForceNMethodSweepTest @@ -60,6 +60,12 @@ @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();