Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/testSCCMLSoftmx.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2012, 2021 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
25
<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">
26
27
<!-- Test 1 to Test 13: 30 tests -->
28
<suite id="Shared Classes CommandLineOptionTests Suite">
29
30
<!-- Our test modes for this suite -->
31
<variable name="mode204" value="-Xshareclasses:name=ShareClassesCMLTests"/>
32
33
<!-- Set variables up -->
34
<variable name="currentMode" value="$mode204$"/>
35
<variable name="PROGRAM" value="SystemProperties" />
36
37
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
38
39
<echo value=" "/>
40
<echo value="#######################################################"/>
41
<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>
42
<echo value="#######################################################"/>
43
<echo value=" "/>
44
45
<!--
46
Note:
47
Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.
48
These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.
49
50
The string 'corrupt' is checked because it can appear several messages like below.
51
JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.
52
JVMDUMP013I Processed dump event "corruptcache", detail "".
53
JVMSHRC442E Shared cache "jim" is corrupt. Corruption code is -1. Corrupt value is 0x0. No new JVMs will be allowed to connect to the cache.
54
-->
55
56
<test id="Start : Cleanup" timeout="600" runPath=".">
57
<command>$JAVA_EXE$ $currentMode$,destroy</command>
58
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
59
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
60
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
61
62
<output type="failure" caseSensitive="no" regex="no">error</output>
63
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
64
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
65
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
66
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
67
</test>
68
69
<test id="Test 1-a: Create a cache with softmx=0" timeout="600" runPath=".">
70
<command>$JAVA_EXE$ $currentMode$,addtestjithints,verbose -XX:SharedCacheHardLimit=16m -Xscmx0m -Xaot:forceAot,count=1 -Xjit:disableAsyncCompilation -version</command>
71
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx limit for shared cache usage is smaller than the minimum feasible value [^0][0-9]* bytes</output>
72
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx bytes is set to [^0][0-9]*</output>
73
<output type="required" caseSensitive="yes" regex="no">Total bytes stored=0</output>
74
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Total unstored bytes due to the setting of shared cache soft max is [^0][0-9]*</output>
75
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
76
77
<!-- in the output of addtestjithints, there might be class name or method name containing the word 'error', add space before and after 'error' in the following check-->
78
<output type="failure" caseSensitive="yes" regex="no"> error </output>
79
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
80
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
81
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
82
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
83
</test>
84
85
<test id="Test 1-b: Verify in the cache stats that nothing has been added into the cache" timeout="600" runPath=".">
86
<command>$JAVA_EXE$ $currentMode$,printDetails</command>
87
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">AOT Methods\s+= 0</output>
88
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">JIT Hints\s+= 0</output>
89
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">ROMClasses\s+= 0</output>
90
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Cache is 100% soft full</output>
91
92
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">#(.)*= [^0][0-9]*</output>
93
<output type="failure" caseSensitive="yes" regex="no">error</output>
94
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
95
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
96
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
97
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
98
</test>
99
100
<test id="Test 2: Increase softmx to 20m" timeout="600" runPath=".">
101
<command>$JAVA_EXE$ $currentMode$,adjustsoftmx=20m</command>
102
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes"> The softmx limit set for shared cache usage is greater than the total cache size [^0][0-9]* bytes</output>
103
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx bytes is set to [^0][0-9]*</output>
104
105
<output type="failure" caseSensitive="yes" regex="no">error</output>
106
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
107
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
108
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
109
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
110
</test>
111
112
<test id="Test 3-a: Add ROMClasses, AOT methods and JITHints into the cache" timeout="600" runPath=".">
113
<command>$JAVA_EXE$ $currentMode$,verboseAOT,verboseJITDATA,addtestjithints -Xaot:forceAot,count=1 -Xjit:disableAsyncCompilation -version</command>
114
115
<output type="required" caseSensitive="yes" regex="no">Stored AOT code for ROMMethod</output>
116
<output type="required" caseSensitive="yes" regex="no">Stored JITHINT attached data</output>
117
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
118
119
<!-- in the output of addtestjithints, there might be class name or method name containing the word 'error', add space before and after 'error' in the following check-->
120
<output type="failure" caseSensitive="yes" regex="no"> error </output>
121
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
122
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
123
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
124
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
125
</test>
126
127
<test id="Test 3-b: Verify in the cache stats that ROMClasses, AOT methods and JIT data have been added into the cache" timeout="600" runPath=".">
128
<command>$JAVA_EXE$ $currentMode$,printDetails</command>
129
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">AOT Methods\s+= [^0][0-9]*</output>
130
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">JIT Hints\s+= [^0][0-9]*</output>
131
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">ROMClasses\s+= [^0][0-9]*</output>
132
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Cache is [^0][0-9]*% soft full</output>
133
134
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">AOT Methods\s+= 0</output>
135
<output type="failure" caseSensitive="yes"regex="yes" javaUtilPattern="yes">JIT Hints\s+= 0</output>
136
<output type="failure" caseSensitive="yes"regex="yes" javaUtilPattern="yes">ROMClasses\s+= 0</output>
137
<output type="failure" caseSensitive="yes">Cache is 0% soft full</output>
138
<output type="failure" caseSensitive="yes" regex="no">error</output>
139
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
140
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
141
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
142
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
143
</test>
144
145
<test id="Test 4-a: Test setting maxAOT/maxJIT to a value that is smaller than AOT/JIT bytes already in the cache" timeout="600" runPath=".">
146
<command>$JAVA_EXE$ $currentMode$,adjustmaxaot=1,adjustmaxjitdata=1</command>
147
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The size of maximum AOT space should not be smaller than the AOT bytes \([^0][0-9]*\) that is already stored in the cache</output>
148
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The size of maximum JIT data space should not be smaller than the JIT bytes \([^0][0-9]*\) that is already stored in the cache</output>
149
150
<output type="failure" caseSensitive="yes" regex="no">error</output>
151
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
152
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
153
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
154
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
155
</test>
156
157
<test id="Test 4-b: Test setting minAOT to a value that is greater than maxAOT" timeout="600" runPath=".">
158
<command>$JAVA_EXE$ $currentMode$,adjustminaot=10m</command>
159
<output type="success" caseSensitive="yes" regex="no">The minimum reserved AOT space should not be greater than the maximum allowed AOT space</output>
160
161
<output type="failure" caseSensitive="yes" regex="no">The minimum reserved AOT bytes is set to</output>
162
<output type="failure" caseSensitive="yes" regex="no">error</output>
163
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
164
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
165
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
166
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
167
</test>
168
169
<test id="Test 4-c: Test setting minJIT to a value that is greater than maxJIT" timeout="600" runPath=".">
170
<command>$JAVA_EXE$ $currentMode$,adjustminjitdata=10m</command>
171
<output type="success" caseSensitive="yes" regex="no">The minimum reserved JIT data space should not be greater than the maximum allowed JIT data space</output>
172
173
<output type="failure" caseSensitive="yes" regex="no">The minimum reserved JIT data bytes is set to</output>
174
<output type="failure" caseSensitive="yes" regex="no">error</output>
175
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
176
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
177
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
178
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
179
</test>
180
181
<test id="Test 4-d: Test setting softmx to a value that is smaller than the number of bytes already used" timeout="600" runPath=".">
182
<command>$JAVA_EXE$ $currentMode$,adjustsoftmx=1m</command>
183
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx limit for shared cache usage is smaller than the number of bytes [^0][0-9]* in shared cache already in use</output>
184
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx bytes is set to [^0][0-9]*</output>
185
186
<output type="failure" caseSensitive="yes" regex="no">error</output>
187
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
188
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
189
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
190
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
191
</test>
192
193
<test id="Test 5: Cleanup" timeout="600" runPath=".">
194
<command>$JAVA_EXE$ $currentMode$,destroy</command>
195
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
196
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
197
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
198
199
<output type="failure" caseSensitive="no" regex="no">error</output>
200
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
201
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
202
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
203
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
204
</test>
205
206
<test id="Test 6-a: Create a new cache with -Xscminaot0 -Xscmaxaot0 and -Xscminjitdata0 -Xscmaxjitdata0" timeout="600" runPath=".">
207
<command>$JAVA_EXE$ $currentMode$ -Xscminaot0 -Xscmaxaot0 -Xscminjitdata0 -Xscmaxjitdata0 -version</command>
208
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
209
210
<output type="failure" caseSensitive="no" regex="no">error</output>
211
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
212
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
213
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
214
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
215
</test>
216
217
<test id="Test 6-b: Verify in the cache stats that the softmx value is not negative" timeout="600" runPath=".">
218
<command>$JAVA_EXE$ $currentMode$,printStats</command>
219
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
220
221
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">softmx bytes\s+= -</output>
222
<output type="failure" caseSensitive="no" regex="no">error</output>
223
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
224
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
225
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
226
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
227
</test>
228
229
<test id="Test 7-a: Adjust the size of softmx, AOT and JIT data space" timeout="600" runPath=".">
230
<command>$JAVA_EXE$ $currentMode$,readOnly,adjustminaot=20k,adjustmaxaot=1m,adjustminjitdata=40k,adjustmaxjitdata=2m,adjustsoftmx=10m</command>
231
<output type="required" caseSensitive="yes" regex="no">Sub-option "readonly" is ignored</output>
232
<output type="required" caseSensitive="yes" regex="no">The softmx bytes is set to 10485760</output>
233
<output type="required" caseSensitive="yes" regex="no">The minimum reserved AOT bytes is set to 20480</output>
234
<output type="required" caseSensitive="yes" regex="no">The maximum allowed AOT bytes is set to 1048576</output>
235
<output type="required" caseSensitive="yes" regex="no">The minimum reserved JIT data bytes is set to 40960</output>
236
<output type="success" caseSensitive="yes" regex="no">The maximum allowed JIT data bytes is set to 2097152</output>
237
238
<output type="failure" caseSensitive="no" regex="no">error</output>
239
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
240
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
241
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
242
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
243
</test>
244
245
<test id="Test 7-b: Verify in the cache stats that the sofmx, AOT and JIT data space have been adjusted to expected value" timeout="600" runPath=".">
246
<command>$JAVA_EXE$ $currentMode$,printStats</command>
247
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">softmx bytes\s+= 10485760</output>
248
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for AOT bytes\s+= 20480</output>
249
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for AOT bytes\s+= 1048576</output>
250
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for JIT data bytes\s+= 40960</output>
251
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for JIT data bytes\s+= 2097152</output>
252
253
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for AOT bytes\s+= 0</output>
254
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for AOT bytes\s+= 0</output>
255
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for JIT data bytes\s+= 0</output>
256
<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for JIT data bytes\s+= 0</output>
257
<output type="failure" caseSensitive="no" regex="no">error</output>
258
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
259
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
260
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
261
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
262
</test>
263
264
<test id="Test 7-c : Cleanup" timeout="600" runPath=".">
265
<command>$JAVA_EXE$ $currentMode$,destroy</command>
266
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
267
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
268
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
269
270
<output type="failure" caseSensitive="no" regex="no">error</output>
271
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
272
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
273
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
274
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
275
</test>
276
277
<test id="Test 8: Test create a cache with a positive softmx value" timeout="600" runPath=".">
278
<command>$JAVA_EXE$ $currentMode$,verbose -XX:SharedCacheHardLimit=16m -Xscmx1m -version</command>
279
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
280
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Total unstored bytes due to the setting of shared cache soft max is [^0][0-9]*</output>
281
282
<output type="failure" caseSensitive="no" regex="no">error</output>
283
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
284
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
285
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
286
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
287
</test>
288
289
<test id="Test 9-a: create a new cache" timeout="600" runPath=".">
290
<command>$JAVA_EXE$ $currentMode$,reset $PROGRAM$</command>
291
<output type="success" caseSensitive="yes" regex="no">java.runtime.version</output>
292
293
<output type="failure" caseSensitive="no" regex="no">error</output>
294
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
295
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
296
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
297
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
298
</test>
299
300
<exec command="touch $PROGRAM$.class"/>
301
302
<test id="Test 9-b: Mark previous class entry as stale" timeout="600" runPath=".">
303
<command>$JAVA_EXE$ $currentMode$ $PROGRAM$</command>
304
<output type="success" caseSensitive="yes" regex="no">java.runtime.version</output>
305
306
<output type="failure" caseSensitive="no" regex="no">error</output>
307
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
308
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
309
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
310
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
311
</test>
312
313
<test id="Test 9-b: Test stale entry is shown in printStats=stale" timeout="600" runPath=".">
314
<command>$JAVA_EXE$ $currentMode$,printStats=stale</command>
315
<output type="success" javaUtilPattern="yes" regex="yes">ROMCLASS: SystemProperties at 0x[\w]*[\.]!STALE![\n\r].*Index</output>
316
<output type="required" caseSensitive="no" regex="no">stale bytes</output>
317
318
<output type="failure" javaUtilPattern="yes" regex="yes">ROMCLASS:(.)*at 0x[\w]*[\.][\n\r].*Index</output>
319
<output type="failure" javaUtilPattern="yes" regex="yes">ROMMETHOD:(.)*Address: 0x[\w]*[\n\r]</output>
320
<output type="failure" javaUtilPattern="yes" regex="yes">AOT:(.)*Address: 0x[\w]*[\n\r]</output>
321
<output type="failure" javaUtilPattern="yes" regex="yes">JITPROFILE:(.)*Address: 0x[\w]*[\n\r]</output>
322
<output type="failure" javaUtilPattern="yes" regex="yes">JITHINT:(.)*Address: 0x[\w]*[\n\r]</output>
323
<output type="failure" javaUtilPattern="yes" regex="yes">ORPHAN:(.)*at 0x[\w]*[\.][\n\r]</output>
324
<output type="failure" javaUtilPattern="yes" regex="yes">Address: 0x[\w]*[\s]Size [\d]*[\n\r]</output>
325
<output type="failure" caseSensitive="no" regex="no">error</output>
326
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
327
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
328
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
329
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
330
</test>
331
332
<test id="Test 9-c: Cleanup" timeout="600" runPath=".">
333
<command>$JAVA_EXE$ $currentMode$,destroy</command>
334
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
335
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
336
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
337
338
<output type="failure" caseSensitive="no" regex="no">error</output>
339
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
340
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
341
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
342
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
343
</test>
344
345
<test id="Test 10-a: Test create a cache with a small -Xscmaxaot and -Xscmaxjitdata value" timeout="600" runPath=".">
346
<command>$JAVA_EXE$ $currentMode$,verbose -Xscmaxaot10 -Xscmaxjitdata10 -Xaot:forceAot,count=1 -Xjit:disableAsyncCompilation -version</command>
347
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
348
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Unstored AOT bytes due to the setting of -Xscmaxaot is [^0][0-9]*. Unstored JIT bytes due to the setting of -Xscmaxjitdata is [^0][0-9]*</output>
349
350
<output type="failure" caseSensitive="no" regex="no">error</output>
351
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
352
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
353
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
354
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
355
</test>
356
357
<test id="Test 10-b: Cleanup" timeout="600" runPath=".">
358
<command>$JAVA_EXE$ $currentMode$,destroy</command>
359
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
360
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
361
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
362
363
<output type="failure" caseSensitive="no" regex="no">error</output>
364
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
365
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
366
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
367
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
368
</test>
369
370
<test id="Test 11-a: Test create a cache with -Xscmx12m" timeout="600" runPath=".">
371
<command>$JAVA_EXE$ $currentMode$ -Xscmx12m -verbose:sizes -version</command>
372
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
373
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">XX:SharedCacheHardLimit=12M\s+shared class cache size</output>
374
375
<output type="failure" caseSensitive="no" regex="no">error</output>
376
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
377
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
378
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
379
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
380
</test>
381
382
<test id="Test 11-b: Cleanup" timeout="600" runPath=".">
383
<command>$JAVA_EXE$ $currentMode$,destroy</command>
384
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
385
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
386
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
387
388
<output type="failure" caseSensitive="no" regex="no">error</output>
389
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
390
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
391
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
392
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
393
</test>
394
395
<test id="Test 12-a: Test create a cache with -XX:SharedCacheHardLimit=12m" timeout="600" runPath=".">
396
<command>$JAVA_EXE$ $currentMode$ -XX:SharedCacheHardLimit=12m -verbose:sizes -version</command>
397
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
398
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">-XX:SharedCacheHardLimit=12M\s+shared class cache size</output>
399
400
<output type="failure" caseSensitive="no" regex="no">error</output>
401
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
402
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
403
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
404
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
405
</test>
406
407
<test id="Test 12-b: Cleanup" timeout="600" runPath=".">
408
<command>$JAVA_EXE$ $currentMode$,destroy</command>
409
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
410
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
411
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
412
413
<output type="failure" caseSensitive="no" regex="no">error</output>
414
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
415
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
416
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
417
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
418
</test>
419
420
<test id="Test 13-a: Test create a cache with -XX:SharedCacheHardLimit=12m and -Xscmx10m" timeout="600" runPath=".">
421
<command>$JAVA_EXE$ $currentMode$ -XX:SharedCacheHardLimit=12m -Xscmx10m -verbose:sizes -version</command>
422
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
423
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">-XX:SharedCacheHardLimit=12M\s+shared class cache size</output>
424
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">-Xscmx10M\s+shared class cache soft max size</output>
425
426
<output type="failure" caseSensitive="no" regex="no">error</output>
427
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
428
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
429
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
430
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
431
</test>
432
433
<test id="Test 13-b: Cleanup" timeout="600" runPath=".">
434
<command>$JAVA_EXE$ $currentMode$,destroy</command>
435
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
436
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
437
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
438
439
<output type="failure" caseSensitive="no" regex="no">error</output>
440
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
441
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
442
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
443
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
444
</test>
445
446
<test id="End : Cleanup" timeout="600" runPath=".">
447
<command>$JAVA_EXE$ $currentMode$,destroy</command>
448
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
449
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
450
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
451
452
<output type="failure" caseSensitive="no" regex="no">error</output>
453
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
454
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
455
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
456
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
457
</test>
458
459
<!--
460
***** IMPORTANT NOTE *****
461
The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.
462
-->
463
</suite>
464
465