test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest.java
changeset 51754 594919232b8f
parent 51687 1e39953aaed8
child 59053 ba6c248cae19
equal deleted inserted replaced
51753:763aa4d1d596 51754:594919232b8f
    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();