< prev index next >
test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java
Print this page
rev 49268 : [mq]: event6
rev 49269 : [mq]: event7
*** 51,64 ****
for (int currentSize : sizes) {
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.
if (!HeapMonitor.statsHaveExpectedNumberSamples(maxIteration, 10)) {
throw new RuntimeException("Statistics should show about " + maxIteration + " samples.");
--- 51,60 ----
< prev index next >