test/gc/metaspace/G1AddMetaspaceDependency.java

Print this page

        

@@ -22,10 +22,11 @@
  */
 
 /*
  * @test G1AddMetaspaceDependency
  * @bug 8010196
+ * @requires vm.gc=="G1" | vm.gc=="null"
  * @summary Checks that we don't get locking problems when adding metaspace dependencies with the G1 update buffer monitor
  * @run main/othervm -XX:+UseG1GC -XX:G1UpdateBufferSize=1 G1AddMetaspaceDependency
  */
 
 import java.io.InputStream;