Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/gtest/MetaspaceGtests.java
41145 views
1
/*
2
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
3
* Copyright (c) 2020 SAP SE. All rights reserved.
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
*
6
* This code is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License version 2 only, as
8
* published by the Free Software Foundation.
9
*
10
* This code is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
* version 2 for more details (a copy is included in the LICENSE file that
14
* accompanied this code).
15
*
16
* You should have received a copy of the GNU General Public License version
17
* 2 along with this work; if not, write to the Free Software Foundation,
18
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
*
20
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21
* or visit www.oracle.com if you need additional information or have any
22
* questions.
23
*
24
*/
25
26
/*
27
* Note: This runs the metaspace-related parts of gtest in configurations which
28
* are not tested explicitly in the standard gtests.
29
*
30
*/
31
32
/* @test id=reclaim-none-debug
33
* @bug 8251158
34
* @summary Run metaspace-related gtests for reclaim policy none (with verifications)
35
* @requires vm.debug
36
* @library /test/lib
37
* @modules java.base/jdk.internal.misc
38
* java.xml
39
* @requires vm.flagless
40
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3
41
*/
42
43
/* @test id=reclaim-none-ndebug
44
* @bug 8251158
45
* @summary Run metaspace-related gtests for reclaim policy none
46
* @library /test/lib
47
* @modules java.base/jdk.internal.misc
48
* java.xml
49
* @requires vm.flagless
50
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=none
51
*/
52
53
54
55
56
/* @test id=reclaim-aggressive-debug
57
* @bug 8251158
58
* @summary Run metaspace-related gtests for reclaim policy aggressive (with verifications)
59
* @requires vm.debug
60
* @library /test/lib
61
* @modules java.base/jdk.internal.misc
62
* java.xml
63
* @requires vm.flagless
64
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3
65
*/
66
67
/* @test id=reclaim-aggressive-ndebug
68
* @bug 8251158
69
* @summary Run metaspace-related gtests for reclaim policy aggressive
70
* @library /test/lib
71
* @modules java.base/jdk.internal.misc
72
* java.xml
73
* @requires vm.flagless
74
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=aggressive
75
*/
76
77
78
79
80
/* @test id=balanced-with-guards
81
* @summary Run metaspace-related gtests with allocation guards enabled
82
* @requires vm.debug
83
* @library /test/lib
84
* @modules java.base/jdk.internal.misc
85
* java.xml
86
* @requires vm.flagless
87
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:+UnlockDiagnosticVMOptions -XX:VerifyMetaspaceInterval=3 -XX:+MetaspaceGuardAllocations
88
*/
89
90
91
92
93
/* @test id=balanced-no-ccs
94
* @summary Run metaspace-related gtests with compressed class pointers off
95
* @requires vm.bits == 64
96
* @library /test/lib
97
* @modules java.base/jdk.internal.misc
98
* java.xml
99
* @requires vm.flagless
100
* @run main/native GTestWrapper --gtest_filter=metaspace* -XX:MetaspaceReclaimPolicy=balanced -XX:-UseCompressedClassPointers
101
*/
102
103