test/gc/metaspace/TestMetaspacePerfCounters.java

Print this page

        

@@ -27,10 +27,11 @@
 import com.oracle.java.testlibrary.*;
 import static com.oracle.java.testlibrary.Asserts.*;
 
 /* @test TestMetaspacePerfCounters
  * @bug 8014659
+ * @requires vm.gc=="null"
  * @library /testlibrary
  * @summary Tests that performance counters for metaspace and compressed class
  *          space exists and works.
  *
  * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC TestMetaspacePerfCounters