8213527: [testbug] Fix PrintMetaspaceDcmd test using UseCompressedOops for 32-bit.
authorgoetz
Mon, 12 Nov 2018 16:40:25 +0100
changeset 52492 c22997db2a22
parent 52491 23b3a46fa159
child 52493 a609d549992a
8213527: [testbug] Fix PrintMetaspaceDcmd test using UseCompressedOops for 32-bit. Reviewed-by: dholmes, mdoerr
test/hotspot/jtreg/runtime/Metaspace/PrintMetaspaceDcmd.java
--- a/test/hotspot/jtreg/runtime/Metaspace/PrintMetaspaceDcmd.java	Mon Nov 12 12:55:36 2018 +0000
+++ b/test/hotspot/jtreg/runtime/Metaspace/PrintMetaspaceDcmd.java	Mon Nov 12 16:40:25 2018 +0100
@@ -30,13 +30,23 @@
  * @test
  * @key metaspace jcmd
  * @summary Test the VM.metaspace command
- * @requires vm.gc != "Z"
+ * @requires vm.gc != "Z" & vm.bits != "32"
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
  * @run main/othervm -XX:MaxMetaspaceSize=201M -Xmx100M -XX:+UseCompressedOops -XX:+UseCompressedClassPointers PrintMetaspaceDcmd with-compressed-class-space
  * @run main/othervm -XX:MaxMetaspaceSize=201M -Xmx100M -XX:-UseCompressedOops -XX:-UseCompressedClassPointers PrintMetaspaceDcmd without-compressed-class-space
  */
+/*
+ * @test
+ * @key metaspace jcmd
+ * @summary Test the VM.metaspace command
+ * @requires vm.gc != "Z" & vm.bits == "32"
+ * @library /test/lib
+ * @modules java.base/jdk.internal.misc
+ *          java.management
+ * @run main/othervm -XX:MaxMetaspaceSize=201M -Xmx100M PrintMetaspaceDcmd without-compressed-class-space
+ */
 
 public class PrintMetaspaceDcmd {