--- old/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java 2018-03-28 08:20:26.341195076 -0700 +++ new/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java 2018-03-28 08:20:26.037196190 -0700 @@ -53,10 +53,6 @@ System.out.println("Testing size " + currentSize); HeapMonitor.resetEventStorage(); - if (!HeapMonitor.eventStorageIsEmpty()) { - throw new RuntimeException("Should not have any events stored yet."); - } - allocate(currentSize); // 10% error ensures a sanity test without becoming flaky.