equal
deleted
inserted
replaced
30 * @author Mandy Chung |
30 * @author Mandy Chung |
31 * |
31 * |
32 * @requires vm.gc == "null" |
32 * @requires vm.gc == "null" |
33 * @requires vm.opt.ExplicitGCInvokesConcurrent != "true" |
33 * @requires vm.opt.ExplicitGCInvokesConcurrent != "true" |
34 * @requires vm.opt.DisableExplicitGC != "true" |
34 * @requires vm.opt.DisableExplicitGC != "true" |
35 * @library /lib/testlibrary/ /test/lib |
35 * @library /test/lib |
36 * |
36 * |
37 * @build jdk.testlibrary.* LowMemoryTest MemoryUtil RunUtil |
37 * @build LowMemoryTest MemoryUtil RunUtil |
38 * @build sun.hotspot.WhiteBox |
38 * @build sun.hotspot.WhiteBox |
39 * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission |
39 * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission |
40 * @run main/othervm/timeout=600 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. LowMemoryTest |
40 * @run main/othervm/timeout=600 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. LowMemoryTest |
41 */ |
41 */ |
42 |
42 |
45 import java.util.concurrent.Phaser; |
45 import java.util.concurrent.Phaser; |
46 import javax.management.*; |
46 import javax.management.*; |
47 import javax.management.openmbean.CompositeData; |
47 import javax.management.openmbean.CompositeData; |
48 import jdk.test.lib.JDKToolFinder; |
48 import jdk.test.lib.JDKToolFinder; |
49 import jdk.test.lib.process.ProcessTools; |
49 import jdk.test.lib.process.ProcessTools; |
50 import jdk.testlibrary.Utils; |
50 import jdk.test.lib.Utils; |
51 |
51 |
52 import sun.hotspot.code.Compiler; |
52 import sun.hotspot.code.Compiler; |
53 |
53 |
54 public class LowMemoryTest { |
54 public class LowMemoryTest { |
55 private static final MemoryMXBean mm = ManagementFactory.getMemoryMXBean(); |
55 private static final MemoryMXBean mm = ManagementFactory.getMemoryMXBean(); |