8204167: Filter out tests requiring compressed oops when CompressedOops is disabled
authorstefank
Tue, 05 Jun 2018 15:56:17 +0200
changeset 50406 314af5e1e787
parent 50405 449cbde4c40c
child 50407 3dfdcca00ecc
8204167: Filter out tests requiring compressed oops when CompressedOops is disabled Reviewed-by: coleenp, kbarrett
test/hotspot/jtreg/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
test/hotspot/jtreg/gc/metaspace/TestMetaspaceMemoryPool.java
test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java
test/hotspot/jtreg/runtime/CompressedOops/CompressedClassSpaceSize.java
test/hotspot/jtreg/runtime/Metaspace/MaxMetaspaceSizeTest.java
test/hotspot/jtreg/runtime/logging/CompressedOopsTest.java
--- a/test/hotspot/jtreg/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Tue Jun 05 15:56:14 2018 +0200
+++ b/test/hotspot/jtreg/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java	Tue Jun 05 15:56:17 2018 +0200
@@ -25,6 +25,7 @@
  * @test CompressedClassSpaceSizeInJmapHeap
  * @bug 8004924
  * @summary Checks that jmap -heap contains the flag CompressedClassSpaceSize
+ * @requires vm.opt.final.UseCompressedOops
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
--- a/test/hotspot/jtreg/gc/metaspace/TestMetaspaceMemoryPool.java	Tue Jun 05 15:56:14 2018 +0200
+++ b/test/hotspot/jtreg/gc/metaspace/TestMetaspaceMemoryPool.java	Tue Jun 05 15:56:17 2018 +0200
@@ -32,6 +32,7 @@
  * @bug 8000754
  * @summary Tests that a MemoryPoolMXBeans is created for metaspace and that a
  *          MemoryManagerMXBean is created.
+ * @requires vm.opt.final.UseCompressedOops
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
--- a/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java	Tue Jun 05 15:56:14 2018 +0200
+++ b/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java	Tue Jun 05 15:56:17 2018 +0200
@@ -25,6 +25,7 @@
  * @test
  * @bug 8024927
  * @summary Testing address of compressed class pointer space as best as possible.
+ * @requires vm.opt.final.UseCompressedOops
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
--- a/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassSpaceSize.java	Tue Jun 05 15:56:14 2018 +0200
+++ b/test/hotspot/jtreg/runtime/CompressedOops/CompressedClassSpaceSize.java	Tue Jun 05 15:56:17 2018 +0200
@@ -25,6 +25,7 @@
  * @test
  * @bug 8022865
  * @summary Tests for the -XX:CompressedClassSpaceSize command line option
+ * @requires vm.opt.final.UseCompressedOops
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
--- a/test/hotspot/jtreg/runtime/Metaspace/MaxMetaspaceSizeTest.java	Tue Jun 05 15:56:14 2018 +0200
+++ b/test/hotspot/jtreg/runtime/Metaspace/MaxMetaspaceSizeTest.java	Tue Jun 05 15:56:17 2018 +0200
@@ -27,6 +27,7 @@
 /*
  * @test MaxMetaspaceSizeTest
  * @requires vm.bits == "64"
+ * @requires vm.opt.final.UseCompressedOops
  * @bug 8087291
  * @library /test/lib
  * @run main/othervm MaxMetaspaceSizeTest
--- a/test/hotspot/jtreg/runtime/logging/CompressedOopsTest.java	Tue Jun 05 15:56:14 2018 +0200
+++ b/test/hotspot/jtreg/runtime/logging/CompressedOopsTest.java	Tue Jun 05 15:56:17 2018 +0200
@@ -25,6 +25,7 @@
  * @test
  * @bug 8149991
  * @requires (sun.arch.data.model == "64")
+ * @requires vm.opt.final.UseCompressedOops
  * @summary -Xlog:gc+heap+coops=info should have output from the code
  * @library /test/lib
  * @modules java.base/jdk.internal.misc