--- old/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorEventOnOffTest.java 2018-03-21 10:34:13.503171532 -0700 +++ new/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorEventOnOffTest.java 2018-03-21 10:34:13.223172492 -0700 @@ -58,7 +58,7 @@ } public static void main(String[] args) { - HeapMonitor.enableSamplingRate(); + HeapMonitor.enableSamplingEvents(); checkEventsAreBeingSent(); // Disabling the notification system should stop events.