Path: blob/master/test/hotspot/jtreg/gtest/MetaspaceGtests.java
41145 views
/*1* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2020 SAP SE. All rights reserved.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425/*26* Note: This runs the metaspace-related parts of gtest in configurations which27* are not tested explicitly in the standard gtests.28*29*/3031/* @test id=reclaim-none-debug32* @bug 825115833* @summary Run metaspace-related gtests for reclaim policy none (with verifications)34* @requires vm.debug35* @library /test/lib36* @modules java.base/jdk.internal.misc37* java.xml38* @requires vm.flagless39* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=340*/4142/* @test id=reclaim-none-ndebug43* @bug 825115844* @summary Run metaspace-related gtests for reclaim policy none45* @library /test/lib46* @modules java.base/jdk.internal.misc47* java.xml48* @requires vm.flagless49* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none50*/5152535455/* @test id=reclaim-aggressive-debug56* @bug 825115857* @summary Run metaspace-related gtests for reclaim policy aggressive (with verifications)58* @requires vm.debug59* @library /test/lib60* @modules java.base/jdk.internal.misc61* java.xml62* @requires vm.flagless63* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=364*/6566/* @test id=reclaim-aggressive-ndebug67* @bug 825115868* @summary Run metaspace-related gtests for reclaim policy aggressive69* @library /test/lib70* @modules java.base/jdk.internal.misc71* java.xml72* @requires vm.flagless73* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive74*/7576777879/* @test id=balanced-with-guards80* @summary Run metaspace-related gtests with allocation guards enabled81* @requires vm.debug82* @library /test/lib83* @modules java.base/jdk.internal.misc84* java.xml85* @requires vm.flagless86* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3 -XX:+MetaspaceGuardAllocations87*/8889909192/* @test id=balanced-no-ccs93* @summary Run metaspace-related gtests with compressed class pointers off94* @requires vm.bits == 6495* @library /test/lib96* @modules java.base/jdk.internal.misc97* java.xml98* @requires vm.flagless99* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=balanced -XX:-UseCompressedClassPointers100*/101102103