test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java
--- a/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java Tue Jul 17 17:52:03 2018 -0700
+++ b/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java Tue Jul 17 19:59:38 2018 -0700
@@ -26,7 +26,7 @@
/**
* @test
* @build Frame HeapMonitor
- * @summary Verifies the JVMTI Heap Monitor rate when allocating arrays.
+ * @summary Verifies the JVMTI Heap Monitor interval when allocating arrays.
* @compile HeapMonitorArrayAllSampledTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorArrayAllSampledTest
*/
@@ -46,7 +46,7 @@
public static void main(String[] args) {
int sizes[] = {1000, 10000, 100000, 1000000};
- HeapMonitor.setSamplingRate(0);
+ HeapMonitor.setSamplingInterval(0);
HeapMonitor.enableSamplingEvents();
for (int currentSize : sizes) {
@@ -56,8 +56,8 @@
allocate(currentSize);
// 10% error ensures a sanity test without becoming flaky.
- // Flakiness is due to the fact that this test is dependent on the sampling rate, which is a
- // statistical geometric variable around the sampling rate. This means that the test could be
+ // Flakiness is due to the fact that this test is dependent on the sampling interval, which is a
+ // statistical geometric variable around the sampling interval. This means that the test could be
// unlucky and not achieve the mean average fast enough for the test case.
if (!HeapMonitor.statsHaveExpectedNumberSamples(maxIteration, 10)) {
throw new RuntimeException("Statistics should show about " + maxIteration + " samples.");