Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8273958: gtest/MetaspaceGtests executes unnecessary tests in debug bu…
…ilds

Backport-of: bb9d142759ece7665329b124a8ea0b16049b024a
  • Loading branch information
tstuefe committed Oct 7, 2021
1 parent a73ddce commit 9352fa2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/hotspot/jtreg/gtest/MetaspaceGtests.java
Expand Up @@ -32,10 +32,10 @@
/* @test id=reclaim-none-debug
* @bug 8251158
* @summary Run metaspace-related gtests for reclaim policy none (with verifications)
* @requires vm.debug
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.debug
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3
*/
Expand All @@ -46,6 +46,7 @@
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.debug == false
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none
*/
Expand All @@ -56,10 +57,10 @@
/* @test id=reclaim-aggressive-debug
* @bug 8251158
* @summary Run metaspace-related gtests for reclaim policy aggressive (with verifications)
* @requires vm.debug
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.debug
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3
*/
Expand All @@ -70,6 +71,7 @@
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.debug == false
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive
*/
Expand All @@ -79,10 +81,10 @@

/* @test id=balanced-with-guards
* @summary Run metaspace-related gtests with allocation guards enabled
* @requires vm.debug
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.debug
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3 -XX:+MetaspaceGuardAllocations
*/
Expand All @@ -92,10 +94,10 @@

/* @test id=balanced-no-ccs
* @summary Run metaspace-related gtests with compressed class pointers off
* @requires vm.bits == 64
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.bits == 64
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=balanced -XX:-UseCompressedClassPointers
*/

1 comment on commit 9352fa2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.