< prev index next >

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

Print this page
@@ -56,21 +56,33 @@
   * @modules jdk.management
   * @run main/othervm -XX:+UseZGC -XX:+ZGenerational MemoryTest 4 2
   */
  
  /*
-  * @test
+  * @test id=Shenandoah
   * @bug     4530538
-  * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
-  *          MemoryMXBean.getMemoryManager().
-  * @requires vm.gc == "Shenandoah"
+  * @summary Shenandoah has a gc mgr bean for cycles and another
+  *          for pauses, they both have one pool.
+  * @requires vm.gc == "Shenandoah" & vm.opt.ShenandoahGCMode != "generational"
   * @author  Mandy Chung
   *
   * @modules jdk.management
   * @run main MemoryTest 2 1
   */
  
+ /*
+  * @test id=Genshen
+  * @bug     4530538
+  * @summary Shenandoah's generational mode has a gc mgr bean for cycles
+  *          and another for pauses. They both reference the young and old pools.
+  * @requires vm.gc == "Shenandoah" & vm.opt.ShenandoahGCMode == "generational"
+  * @author  Mandy Chung
+  *
+  * @modules jdk.management
+  * @run main MemoryTest 2 2
+  */
+ 
  /*
   * @test
   * @bug     4530538
   * @summary Basic unit test of MemoryMXBean.getMemoryPools() and
   *          MemoryMXBean.getMemoryManager().
< prev index next >