--- old/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatSimpleTest.java 2017-10-06 14:50:59.870476174 -0700 +++ new/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatSimpleTest.java 2017-10-06 14:50:59.482477480 -0700 @@ -26,13 +26,10 @@ /** * @test * @summary Verifies the JVMTI Heap Monitor Statistics - * @build Frame * @compile HeapMonitorStatSimpleTest.java * @run main/othervm/native -agentlib:HeapMonitor MyPackage.HeapMonitorStatSimpleTest */ -import java.io.PrintStream; - public class HeapMonitorStatSimpleTest { static { @@ -46,14 +43,12 @@ } } - native static int statsNull(); - native static int enableSampling(); + private static int g_tmp[]; - public static int cnt; - public static int g_tmp[]; - public int array[]; + private native static int statsNull(); + private native static int enableSampling(); - public static int helper() { + private static int helper() { int sum = 0; // Let us assume that the array is 24 bytes of memory. for (int i = 0; i < 127000 / 6; i++) { @@ -65,7 +60,7 @@ return sum; } - public static void wrapper() { + private static void wrapper() { int sum = 0; for (int j = 0; j < 1000; j++) { sum += helper();