test/gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java

Print this page
rev 7249 : 8062537: [TESTBUG] Conflicting GC combinations in hotspot tests

@@ -25,10 +25,11 @@
  * @test
  * @key gc
  * @bug 8049831
  * @library /testlibrary /testlibrary/whitebox
  * @build TestCMSClassUnloadingEnabledHWM
+ * @requires vm.gc=="ConcMarkSweep" | vm.gc=="null"
  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  * @run driver TestCMSClassUnloadingEnabledHWM
  * @summary Test that -XX:-CMSClassUnloadingEnabled will trigger a Full GC when more than MetaspaceSize metadata is allocated.
  */