--- old/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCTest.java 2018-03-21 10:34:14.259168941 -0700 +++ new/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCTest.java 2018-03-21 10:34:14.015169778 -0700 @@ -42,7 +42,7 @@ throw new RuntimeException("Statistics should be null to begin with."); } - HeapMonitor.enableSamplingRate(); + HeapMonitor.enableSamplingEvents(); List frameList = HeapMonitor.allocate(); frameList.add(new Frame("main", "([Ljava/lang/String;)V", "HeapMonitorGCTest.java", 47));