Skip to content

Commit

Permalink
8274523: java/lang/management/MemoryMXBean/MemoryTest.java test shoul…
Browse files Browse the repository at this point in the history
…d handle Shenandoah

Reviewed-by: goetz, zgu
Backport-of: f8415a9b2f610ed431e6948c8174f6d982e5b31f
  • Loading branch information
shipilev committed Dec 7, 2021
1 parent 38bfb43 commit d0445aa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/jdk/java/lang/management/MemoryMXBean/MemoryTest.java
Expand Up @@ -26,13 +26,25 @@
* @bug 4530538
* @summary Basic unit test of MemoryMXBean.getMemoryPools() and
* MemoryMXBean.getMemoryManager().
* @requires vm.gc != "Z"
* @requires vm.gc != "Z" & vm.gc != "Shenandoah"
* @author Mandy Chung
*
* @modules jdk.management
* @run main MemoryTest 2 3
*/

/*
* @test
* @bug 4530538
* @summary Basic unit test of MemoryMXBean.getMemoryPools() and
* MemoryMXBean.getMemoryManager().
* @requires vm.gc == "Shenandoah"
* @author Mandy Chung
*
* @modules jdk.management
* @run main MemoryTest 2 1
*/

/*
* NOTE: This expected result is hardcoded in this test and this test
* will be affected if the heap memory layout is changed in
Expand Down

1 comment on commit d0445aa

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.