< prev index next >

test/jdk/java/lang/management/MemoryMXBean/MemoryTest.java

Print this page

 41  * @requires vm.gc.ZSinglegen
 42  * @author  Mandy Chung
 43  *
 44  * @modules jdk.management
 45  * @run main/othervm -XX:+UseZGC -XX:-ZGenerational MemoryTest 2 1
 46  */
 47 
 48 /*
 49  * @test id=ZGenerational
 50  * @bug     4530538
 51  * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
 52  *          MemoryMXBean.getMemoryManager().
 53  * @requires vm.gc.ZGenerational
 54  * @author  Mandy Chung
 55  *
 56  * @modules jdk.management
 57  * @run main/othervm -XX:+UseZGC -XX:+ZGenerational MemoryTest 4 2
 58  */
 59 
 60 /*
 61  * @test
 62  * @bug     4530538
 63  * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
 64  *          MemoryMXBean.getMemoryManager().
 65  * @requires vm.gc == "Shenandoah"
 66  * @author  Mandy Chung
 67  *
 68  * @modules jdk.management
 69  * @run main MemoryTest 2 1
 70  */
 71 












 72 /*
 73  * @test
 74  * @bug     4530538
 75  * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
 76  *          MemoryMXBean.getMemoryManager().
 77  * @requires vm.gc.G1
 78  * @author  Mandy Chung
 79  *
 80  * @modules jdk.management
 81  * @run main/othervm -XX:+UseG1GC MemoryTest 3 3
 82  */
 83 
 84 /*
 85  * NOTE: This expected result is hardcoded in this test and this test
 86  *       will be affected if the heap memory layout is changed in
 87  *       the future implementation.
 88  */
 89 
 90 import java.lang.management.*;
 91 import java.util.*;

 41  * @requires vm.gc.ZSinglegen
 42  * @author  Mandy Chung
 43  *
 44  * @modules jdk.management
 45  * @run main/othervm -XX:+UseZGC -XX:-ZGenerational MemoryTest 2 1
 46  */
 47 
 48 /*
 49  * @test id=ZGenerational
 50  * @bug     4530538
 51  * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
 52  *          MemoryMXBean.getMemoryManager().
 53  * @requires vm.gc.ZGenerational
 54  * @author  Mandy Chung
 55  *
 56  * @modules jdk.management
 57  * @run main/othervm -XX:+UseZGC -XX:+ZGenerational MemoryTest 4 2
 58  */
 59 
 60 /*
 61  * @test id=Shenandoah
 62  * @bug     4530538
 63  * @summary Shenandoah has a gc mgr bean for cycles and another
 64  *          for pauses, they both have one pool.
 65  * @requires vm.gc == "Shenandoah" & vm.opt.ShenandoahGCMode != "generational"
 66  * @author  Mandy Chung
 67  *
 68  * @modules jdk.management
 69  * @run main MemoryTest 2 1
 70  */
 71 
 72 /*
 73  * @test id=Genshen
 74  * @bug     4530538
 75  * @summary Shenandoah's generational mode has a gc mgr bean for cycles
 76  *          and another for pauses. They both reference the young and old pools.
 77  * @requires vm.gc == "Shenandoah" & vm.opt.ShenandoahGCMode == "generational"
 78  * @author  Mandy Chung
 79  *
 80  * @modules jdk.management
 81  * @run main MemoryTest 2 2
 82  */
 83 
 84 /*
 85  * @test
 86  * @bug     4530538
 87  * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
 88  *          MemoryMXBean.getMemoryManager().
 89  * @requires vm.gc.G1
 90  * @author  Mandy Chung
 91  *
 92  * @modules jdk.management
 93  * @run main/othervm -XX:+UseG1GC MemoryTest 3 3
 94  */
 95 
 96 /*
 97  * NOTE: This expected result is hardcoded in this test and this test
 98  *       will be affected if the heap memory layout is changed in
 99  *       the future implementation.
100  */
101 
102 import java.lang.management.*;
103 import java.util.*;
< prev index next >