Path: blob/master/test/hotspot/jtreg/gtest/MetaspaceGtests.java
64438 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* @library /test/lib35* @modules java.base/jdk.internal.misc36* java.xml37* @requires vm.debug38* @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.debug == false49* @requires vm.flagless50* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none51*/5253545556/* @test id=reclaim-aggressive-debug57* @bug 825115858* @summary Run metaspace-related gtests for reclaim policy aggressive (with verifications)59* @library /test/lib60* @modules java.base/jdk.internal.misc61* java.xml62* @requires vm.debug63* @requires vm.flagless64* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=365*/6667/* @test id=reclaim-aggressive-ndebug68* @bug 825115869* @summary Run metaspace-related gtests for reclaim policy aggressive70* @library /test/lib71* @modules java.base/jdk.internal.misc72* java.xml73* @requires vm.debug == false74* @requires vm.flagless75* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive76*/7778798081/* @test id=balanced-with-guards82* @summary Run metaspace-related gtests with allocation guards enabled83* @library /test/lib84* @modules java.base/jdk.internal.misc85* java.xml86* @requires vm.debug87* @requires vm.flagless88* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3 -XX:+MetaspaceGuardAllocations89*/9091929394/* @test id=balanced-no-ccs95* @summary Run metaspace-related gtests with compressed class pointers off96* @library /test/lib97* @modules java.base/jdk.internal.misc98* java.xml99* @requires vm.bits == 64100* @requires vm.flagless101* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=balanced -XX:-UseCompressedClassPointers102*/103104105