< prev index next >

test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java

Print this page
rev 49267 : [mq]: event5
rev 49268 : [mq]: event6

@@ -44,10 +44,12 @@
   }
 
   public static void main(String[] args) {
     int sizes[] = {1000, 10000, 100000};
 
+    HeapMonitor.enableSamplingEvents();
+
     for (int currentSize : sizes) {
       System.out.println("Testing size " + currentSize);
 
       if (!HeapMonitor.eventStorageIsEmpty()) {
         throw new RuntimeException("Should not have any events stored yet.");
< prev index next >