Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/testSCCMLSoftmx.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no"?>12<!--3Copyright (c) 2012, 2021 IBM Corp. and others45This program and the accompanying materials are made available under6the terms of the Eclipse Public License 2.0 which accompanies this7distribution and is available at https://www.eclipse.org/legal/epl-2.0/8or the Apache License, Version 2.0 which accompanies this distribution and9is available at https://www.apache.org/licenses/LICENSE-2.0.1011This Source Code may also be made available under the following12Secondary Licenses when the conditions for such availability set13forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14General Public License, version 2 with the GNU Classpath15Exception [1] and GNU General Public License, version 2 with the16OpenJDK Assembly Exception [2].1718[1] https://www.gnu.org/software/classpath/license.html19[2] http://openjdk.java.net/legal/assembly-exception.html2021SPDX-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-exception22-->2324<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">2526<!-- Test 1 to Test 13: 30 tests -->27<suite id="Shared Classes CommandLineOptionTests Suite">2829<!-- Our test modes for this suite -->30<variable name="mode204" value="-Xshareclasses:name=ShareClassesCMLTests"/>3132<!-- Set variables up -->33<variable name="currentMode" value="$mode204$"/>34<variable name="PROGRAM" value="SystemProperties" />3536<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>3738<echo value=" "/>39<echo value="#######################################################"/>40<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>41<echo value="#######################################################"/>42<echo value=" "/>4344<!--45Note:46Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.47These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.4849The string 'corrupt' is checked because it can appear several messages like below.50JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.51JVMDUMP013I Processed dump event "corruptcache", detail "".52JVMSHRC442E Shared cache "jim" is corrupt. Corruption code is -1. Corrupt value is 0x0. No new JVMs will be allowed to connect to the cache.53-->5455<test id="Start : Cleanup" timeout="600" runPath=".">56<command>$JAVA_EXE$ $currentMode$,destroy</command>57<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>58<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>59<output type="success" caseSensitive="yes" regex="no">is destroyed</output>6061<output type="failure" caseSensitive="no" regex="no">error</output>62<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>63<output type="failure" caseSensitive="yes" regex="no">Exception:</output>64<output type="failure" caseSensitive="no" regex="no">corrupt</output>65<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>66</test>6768<test id="Test 1-a: Create a cache with softmx=0" timeout="600" runPath=".">69<command>$JAVA_EXE$ $currentMode$,addtestjithints,verbose -XX:SharedCacheHardLimit=16m -Xscmx0m -Xaot:forceAot,count=1 -Xjit:disableAsyncCompilation -version</command>70<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>71<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx bytes is set to [^0][0-9]*</output>72<output type="required" caseSensitive="yes" regex="no">Total bytes stored=0</output>73<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>74<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>7576<!-- 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-->77<output type="failure" caseSensitive="yes" regex="no"> error </output>78<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>79<output type="failure" caseSensitive="yes" regex="no">Exception:</output>80<output type="failure" caseSensitive="no" regex="no">corrupt</output>81<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>82</test>8384<test id="Test 1-b: Verify in the cache stats that nothing has been added into the cache" timeout="600" runPath=".">85<command>$JAVA_EXE$ $currentMode$,printDetails</command>86<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">AOT Methods\s+= 0</output>87<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">JIT Hints\s+= 0</output>88<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">ROMClasses\s+= 0</output>89<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Cache is 100% soft full</output>9091<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">#(.)*= [^0][0-9]*</output>92<output type="failure" caseSensitive="yes" regex="no">error</output>93<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>94<output type="failure" caseSensitive="yes" regex="no">Exception:</output>95<output type="failure" caseSensitive="no" regex="no">corrupt</output>96<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>97</test>9899<test id="Test 2: Increase softmx to 20m" timeout="600" runPath=".">100<command>$JAVA_EXE$ $currentMode$,adjustsoftmx=20m</command>101<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>102<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx bytes is set to [^0][0-9]*</output>103104<output type="failure" caseSensitive="yes" regex="no">error</output>105<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>106<output type="failure" caseSensitive="yes" regex="no">Exception:</output>107<output type="failure" caseSensitive="no" regex="no">corrupt</output>108<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>109</test>110111<test id="Test 3-a: Add ROMClasses, AOT methods and JITHints into the cache" timeout="600" runPath=".">112<command>$JAVA_EXE$ $currentMode$,verboseAOT,verboseJITDATA,addtestjithints -Xaot:forceAot,count=1 -Xjit:disableAsyncCompilation -version</command>113114<output type="required" caseSensitive="yes" regex="no">Stored AOT code for ROMMethod</output>115<output type="required" caseSensitive="yes" regex="no">Stored JITHINT attached data</output>116<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>117118<!-- 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-->119<output type="failure" caseSensitive="yes" regex="no"> error </output>120<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>121<output type="failure" caseSensitive="yes" regex="no">Exception:</output>122<output type="failure" caseSensitive="no" regex="no">corrupt</output>123<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>124</test>125126<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=".">127<command>$JAVA_EXE$ $currentMode$,printDetails</command>128<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">AOT Methods\s+= [^0][0-9]*</output>129<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">JIT Hints\s+= [^0][0-9]*</output>130<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">ROMClasses\s+= [^0][0-9]*</output>131<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Cache is [^0][0-9]*% soft full</output>132133<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">AOT Methods\s+= 0</output>134<output type="failure" caseSensitive="yes"regex="yes" javaUtilPattern="yes">JIT Hints\s+= 0</output>135<output type="failure" caseSensitive="yes"regex="yes" javaUtilPattern="yes">ROMClasses\s+= 0</output>136<output type="failure" caseSensitive="yes">Cache is 0% soft full</output>137<output type="failure" caseSensitive="yes" regex="no">error</output>138<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>139<output type="failure" caseSensitive="yes" regex="no">Exception:</output>140<output type="failure" caseSensitive="no" regex="no">corrupt</output>141<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>142</test>143144<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=".">145<command>$JAVA_EXE$ $currentMode$,adjustmaxaot=1,adjustmaxjitdata=1</command>146<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>147<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>148149<output type="failure" caseSensitive="yes" regex="no">error</output>150<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>151<output type="failure" caseSensitive="yes" regex="no">Exception:</output>152<output type="failure" caseSensitive="no" regex="no">corrupt</output>153<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>154</test>155156<test id="Test 4-b: Test setting minAOT to a value that is greater than maxAOT" timeout="600" runPath=".">157<command>$JAVA_EXE$ $currentMode$,adjustminaot=10m</command>158<output type="success" caseSensitive="yes" regex="no">The minimum reserved AOT space should not be greater than the maximum allowed AOT space</output>159160<output type="failure" caseSensitive="yes" regex="no">The minimum reserved AOT bytes is set to</output>161<output type="failure" caseSensitive="yes" regex="no">error</output>162<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>163<output type="failure" caseSensitive="yes" regex="no">Exception:</output>164<output type="failure" caseSensitive="no" regex="no">corrupt</output>165<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>166</test>167168<test id="Test 4-c: Test setting minJIT to a value that is greater than maxJIT" timeout="600" runPath=".">169<command>$JAVA_EXE$ $currentMode$,adjustminjitdata=10m</command>170<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>171172<output type="failure" caseSensitive="yes" regex="no">The minimum reserved JIT data bytes is set to</output>173<output type="failure" caseSensitive="yes" regex="no">error</output>174<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>175<output type="failure" caseSensitive="yes" regex="no">Exception:</output>176<output type="failure" caseSensitive="no" regex="no">corrupt</output>177<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>178</test>179180<test id="Test 4-d: Test setting softmx to a value that is smaller than the number of bytes already used" timeout="600" runPath=".">181<command>$JAVA_EXE$ $currentMode$,adjustsoftmx=1m</command>182<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>183<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The softmx bytes is set to [^0][0-9]*</output>184185<output type="failure" caseSensitive="yes" regex="no">error</output>186<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>187<output type="failure" caseSensitive="yes" regex="no">Exception:</output>188<output type="failure" caseSensitive="no" regex="no">corrupt</output>189<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>190</test>191192<test id="Test 5: Cleanup" timeout="600" runPath=".">193<command>$JAVA_EXE$ $currentMode$,destroy</command>194<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>195<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>196<output type="success" caseSensitive="yes" regex="no">is destroyed</output>197198<output type="failure" caseSensitive="no" regex="no">error</output>199<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>200<output type="failure" caseSensitive="yes" regex="no">Exception:</output>201<output type="failure" caseSensitive="no" regex="no">corrupt</output>202<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>203</test>204205<test id="Test 6-a: Create a new cache with -Xscminaot0 -Xscmaxaot0 and -Xscminjitdata0 -Xscmaxjitdata0" timeout="600" runPath=".">206<command>$JAVA_EXE$ $currentMode$ -Xscminaot0 -Xscmaxaot0 -Xscminjitdata0 -Xscmaxjitdata0 -version</command>207<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>208209<output type="failure" caseSensitive="no" regex="no">error</output>210<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>211<output type="failure" caseSensitive="yes" regex="no">Exception:</output>212<output type="failure" caseSensitive="no" regex="no">corrupt</output>213<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>214</test>215216<test id="Test 6-b: Verify in the cache stats that the softmx value is not negative" timeout="600" runPath=".">217<command>$JAVA_EXE$ $currentMode$,printStats</command>218<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>219220<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">softmx bytes\s+= -</output>221<output type="failure" caseSensitive="no" regex="no">error</output>222<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>223<output type="failure" caseSensitive="yes" regex="no">Exception:</output>224<output type="failure" caseSensitive="no" regex="no">corrupt</output>225<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>226</test>227228<test id="Test 7-a: Adjust the size of softmx, AOT and JIT data space" timeout="600" runPath=".">229<command>$JAVA_EXE$ $currentMode$,readOnly,adjustminaot=20k,adjustmaxaot=1m,adjustminjitdata=40k,adjustmaxjitdata=2m,adjustsoftmx=10m</command>230<output type="required" caseSensitive="yes" regex="no">Sub-option "readonly" is ignored</output>231<output type="required" caseSensitive="yes" regex="no">The softmx bytes is set to 10485760</output>232<output type="required" caseSensitive="yes" regex="no">The minimum reserved AOT bytes is set to 20480</output>233<output type="required" caseSensitive="yes" regex="no">The maximum allowed AOT bytes is set to 1048576</output>234<output type="required" caseSensitive="yes" regex="no">The minimum reserved JIT data bytes is set to 40960</output>235<output type="success" caseSensitive="yes" regex="no">The maximum allowed JIT data bytes is set to 2097152</output>236237<output type="failure" caseSensitive="no" regex="no">error</output>238<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>239<output type="failure" caseSensitive="yes" regex="no">Exception:</output>240<output type="failure" caseSensitive="no" regex="no">corrupt</output>241<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>242</test>243244<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=".">245<command>$JAVA_EXE$ $currentMode$,printStats</command>246<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">softmx bytes\s+= 10485760</output>247<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for AOT bytes\s+= 20480</output>248<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for AOT bytes\s+= 1048576</output>249<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for JIT data bytes\s+= 40960</output>250<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for JIT data bytes\s+= 2097152</output>251252<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for AOT bytes\s+= 0</output>253<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for AOT bytes\s+= 0</output>254<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Reserved space for JIT data bytes\s+= 0</output>255<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Maximum space for JIT data bytes\s+= 0</output>256<output type="failure" caseSensitive="no" regex="no">error</output>257<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>258<output type="failure" caseSensitive="yes" regex="no">Exception:</output>259<output type="failure" caseSensitive="no" regex="no">corrupt</output>260<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>261</test>262263<test id="Test 7-c : Cleanup" timeout="600" runPath=".">264<command>$JAVA_EXE$ $currentMode$,destroy</command>265<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>266<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>267<output type="success" caseSensitive="yes" regex="no">is destroyed</output>268269<output type="failure" caseSensitive="no" regex="no">error</output>270<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>271<output type="failure" caseSensitive="yes" regex="no">Exception:</output>272<output type="failure" caseSensitive="no" regex="no">corrupt</output>273<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>274</test>275276<test id="Test 8: Test create a cache with a positive softmx value" timeout="600" runPath=".">277<command>$JAVA_EXE$ $currentMode$,verbose -XX:SharedCacheHardLimit=16m -Xscmx1m -version</command>278<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>279<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>280281<output type="failure" caseSensitive="no" regex="no">error</output>282<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>283<output type="failure" caseSensitive="yes" regex="no">Exception:</output>284<output type="failure" caseSensitive="no" regex="no">corrupt</output>285<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>286</test>287288<test id="Test 9-a: create a new cache" timeout="600" runPath=".">289<command>$JAVA_EXE$ $currentMode$,reset $PROGRAM$</command>290<output type="success" caseSensitive="yes" regex="no">java.runtime.version</output>291292<output type="failure" caseSensitive="no" regex="no">error</output>293<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>294<output type="failure" caseSensitive="yes" regex="no">Exception:</output>295<output type="failure" caseSensitive="no" regex="no">corrupt</output>296<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>297</test>298299<exec command="touch $PROGRAM$.class"/>300301<test id="Test 9-b: Mark previous class entry as stale" timeout="600" runPath=".">302<command>$JAVA_EXE$ $currentMode$ $PROGRAM$</command>303<output type="success" caseSensitive="yes" regex="no">java.runtime.version</output>304305<output type="failure" caseSensitive="no" regex="no">error</output>306<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>307<output type="failure" caseSensitive="yes" regex="no">Exception:</output>308<output type="failure" caseSensitive="no" regex="no">corrupt</output>309<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>310</test>311312<test id="Test 9-b: Test stale entry is shown in printStats=stale" timeout="600" runPath=".">313<command>$JAVA_EXE$ $currentMode$,printStats=stale</command>314<output type="success" javaUtilPattern="yes" regex="yes">ROMCLASS: SystemProperties at 0x[\w]*[\.]!STALE![\n\r].*Index</output>315<output type="required" caseSensitive="no" regex="no">stale bytes</output>316317<output type="failure" javaUtilPattern="yes" regex="yes">ROMCLASS:(.)*at 0x[\w]*[\.][\n\r].*Index</output>318<output type="failure" javaUtilPattern="yes" regex="yes">ROMMETHOD:(.)*Address: 0x[\w]*[\n\r]</output>319<output type="failure" javaUtilPattern="yes" regex="yes">AOT:(.)*Address: 0x[\w]*[\n\r]</output>320<output type="failure" javaUtilPattern="yes" regex="yes">JITPROFILE:(.)*Address: 0x[\w]*[\n\r]</output>321<output type="failure" javaUtilPattern="yes" regex="yes">JITHINT:(.)*Address: 0x[\w]*[\n\r]</output>322<output type="failure" javaUtilPattern="yes" regex="yes">ORPHAN:(.)*at 0x[\w]*[\.][\n\r]</output>323<output type="failure" javaUtilPattern="yes" regex="yes">Address: 0x[\w]*[\s]Size [\d]*[\n\r]</output>324<output type="failure" caseSensitive="no" regex="no">error</output>325<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>326<output type="failure" caseSensitive="yes" regex="no">Exception:</output>327<output type="failure" caseSensitive="no" regex="no">corrupt</output>328<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>329</test>330331<test id="Test 9-c: Cleanup" timeout="600" runPath=".">332<command>$JAVA_EXE$ $currentMode$,destroy</command>333<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>334<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>335<output type="success" caseSensitive="yes" regex="no">is destroyed</output>336337<output type="failure" caseSensitive="no" regex="no">error</output>338<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>339<output type="failure" caseSensitive="yes" regex="no">Exception:</output>340<output type="failure" caseSensitive="no" regex="no">corrupt</output>341<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>342</test>343344<test id="Test 10-a: Test create a cache with a small -Xscmaxaot and -Xscmaxjitdata value" timeout="600" runPath=".">345<command>$JAVA_EXE$ $currentMode$,verbose -Xscmaxaot10 -Xscmaxjitdata10 -Xaot:forceAot,count=1 -Xjit:disableAsyncCompilation -version</command>346<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>347<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>348349<output type="failure" caseSensitive="no" regex="no">error</output>350<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>351<output type="failure" caseSensitive="yes" regex="no">Exception:</output>352<output type="failure" caseSensitive="no" regex="no">corrupt</output>353<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>354</test>355356<test id="Test 10-b: Cleanup" timeout="600" runPath=".">357<command>$JAVA_EXE$ $currentMode$,destroy</command>358<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>359<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>360<output type="success" caseSensitive="yes" regex="no">is destroyed</output>361362<output type="failure" caseSensitive="no" regex="no">error</output>363<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>364<output type="failure" caseSensitive="yes" regex="no">Exception:</output>365<output type="failure" caseSensitive="no" regex="no">corrupt</output>366<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>367</test>368369<test id="Test 11-a: Test create a cache with -Xscmx12m" timeout="600" runPath=".">370<command>$JAVA_EXE$ $currentMode$ -Xscmx12m -verbose:sizes -version</command>371<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>372<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">XX:SharedCacheHardLimit=12M\s+shared class cache size</output>373374<output type="failure" caseSensitive="no" regex="no">error</output>375<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>376<output type="failure" caseSensitive="yes" regex="no">Exception:</output>377<output type="failure" caseSensitive="no" regex="no">corrupt</output>378<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>379</test>380381<test id="Test 11-b: Cleanup" timeout="600" runPath=".">382<command>$JAVA_EXE$ $currentMode$,destroy</command>383<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>384<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>385<output type="success" caseSensitive="yes" regex="no">is destroyed</output>386387<output type="failure" caseSensitive="no" regex="no">error</output>388<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>389<output type="failure" caseSensitive="yes" regex="no">Exception:</output>390<output type="failure" caseSensitive="no" regex="no">corrupt</output>391<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>392</test>393394<test id="Test 12-a: Test create a cache with -XX:SharedCacheHardLimit=12m" timeout="600" runPath=".">395<command>$JAVA_EXE$ $currentMode$ -XX:SharedCacheHardLimit=12m -verbose:sizes -version</command>396<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>397<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">-XX:SharedCacheHardLimit=12M\s+shared class cache size</output>398399<output type="failure" caseSensitive="no" regex="no">error</output>400<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>401<output type="failure" caseSensitive="yes" regex="no">Exception:</output>402<output type="failure" caseSensitive="no" regex="no">corrupt</output>403<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>404</test>405406<test id="Test 12-b: Cleanup" timeout="600" runPath=".">407<command>$JAVA_EXE$ $currentMode$,destroy</command>408<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>409<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>410<output type="success" caseSensitive="yes" regex="no">is destroyed</output>411412<output type="failure" caseSensitive="no" regex="no">error</output>413<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>414<output type="failure" caseSensitive="yes" regex="no">Exception:</output>415<output type="failure" caseSensitive="no" regex="no">corrupt</output>416<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>417</test>418419<test id="Test 13-a: Test create a cache with -XX:SharedCacheHardLimit=12m and -Xscmx10m" timeout="600" runPath=".">420<command>$JAVA_EXE$ $currentMode$ -XX:SharedCacheHardLimit=12m -Xscmx10m -verbose:sizes -version</command>421<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>422<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">-XX:SharedCacheHardLimit=12M\s+shared class cache size</output>423<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">-Xscmx10M\s+shared class cache soft max size</output>424425<output type="failure" caseSensitive="no" regex="no">error</output>426<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>427<output type="failure" caseSensitive="yes" regex="no">Exception:</output>428<output type="failure" caseSensitive="no" regex="no">corrupt</output>429<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>430</test>431432<test id="Test 13-b: Cleanup" timeout="600" runPath=".">433<command>$JAVA_EXE$ $currentMode$,destroy</command>434<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>435<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>436<output type="success" caseSensitive="yes" regex="no">is destroyed</output>437438<output type="failure" caseSensitive="no" regex="no">error</output>439<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>440<output type="failure" caseSensitive="yes" regex="no">Exception:</output>441<output type="failure" caseSensitive="no" regex="no">corrupt</output>442<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>443</test>444445<test id="End : Cleanup" timeout="600" runPath=".">446<command>$JAVA_EXE$ $currentMode$,destroy</command>447<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>448<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>449<output type="success" caseSensitive="yes" regex="no">is destroyed</output>450451<output type="failure" caseSensitive="no" regex="no">error</output>452<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>453<output type="failure" caseSensitive="yes" regex="no">Exception:</output>454<output type="failure" caseSensitive="no" regex="no">corrupt</output>455<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>456</test>457458<!--459***** IMPORTANT NOTE *****460The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.461-->462</suite>463464465