# HG changeset patch # User shade # Date 1460026208 0 # Node ID 884254d3426c3977cc1678787449a0995abfc1bd # Parent 28b6a97849ed741855977d98246b981adcdd94db# Parent 4fa831d0f4bf2a8fd31d404704ea4d021261ca93 Merge diff -r 28b6a97849ed -r 884254d3426c hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java --- a/hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java Fri Apr 01 10:43:35 2016 +0300 +++ b/hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java Thu Apr 07 10:50:08 2016 +0000 @@ -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();