8213527: [testbug] Fix PrintMetaspaceDcmd test using UseCompressedOops for 32-bit.
Reviewed-by: dholmes, mdoerr
--- 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 {