diff --git a/test/hotspot/jtreg/runtime/NMT/MallocStressTest.java b/test/hotspot/jtreg/runtime/NMT/MallocStressTest.java index 730dcea3e3d..8d356055c30 100644 --- a/test/hotspot/jtreg/runtime/NMT/MallocStressTest.java +++ b/test/hotspot/jtreg/runtime/NMT/MallocStressTest.java @@ -57,21 +57,19 @@ public class MallocStressTest { release }; - static TestPhase phase = TestPhase.alloc; + static volatile TestPhase phase = TestPhase.alloc; // malloc'd memory - static ArrayList mallocd_memory = new ArrayList(); + static final ArrayList mallocd_memory = new ArrayList(); static long mallocd_total = 0; static WhiteBox whiteBox; static AtomicInteger pause_count = new AtomicInteger(); - static boolean is_64_bit_system; + static final boolean is_64_bit_system = Platform.is64bit(); private static boolean is_64_bit_system() { return is_64_bit_system; } public static void main(String args[]) throws Exception { - is_64_bit_system = (Platform.is64bit()); - OutputAnalyzer output; whiteBox = WhiteBox.getWhiteBox();