--- old/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTest.java 2018-03-19 14:01:19.561593823 -0700 +++ new/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTest.java 2018-03-19 14:01:19.277594749 -0700 @@ -42,7 +42,7 @@ throw new RuntimeException("Storage is not empty at test start..."); } - HeapMonitor.enableSampling(); + HeapMonitor.enableSamplingRate(); List frameList = HeapMonitor.allocate(); frameList.add(new Frame("main", "([Ljava/lang/String;)V", "HeapMonitorTest.java", 46)); @@ -51,7 +51,7 @@ throw new RuntimeException("Events not found with the right frames."); } - HeapMonitor.disableSampling(); + HeapMonitor.disableSamplingRate(); HeapMonitor.resetEventStorage(); if (!HeapMonitor.eventStorageIsEmpty()) { throw new RuntimeException("Storage is not empty after reset.");