Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/ShareClassesCMLTests-6.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 200-a to Test 208 cleanup: 89 tests -->2728<suite id="Shared Classes CommandLineOptionTests Suite">2930<!-- Our test modes for this suite -->31<variable name="mode204" value="-Xshareclasses:name=ShareClassesCMLTests"/>3233<!-- Set variables up -->34<variable name="CACHE_DIR" value="cacheDir=."/>3536<variable name="BOOTCLASSPATH" value="-Xbootclasspath/a:.$PATHSEP$Utils$CPDL$."/>37<variable name="currentMode" value="$mode204$"/>38<variable name="XXShareClassesEnableBCI" value="-XX:ShareClassesEnableBCI"/>39<variable name="XXShareClassesDisableBCI" value="-XX:ShareClassesDisableBCI"/>4041<variable name="CP_HANOI" value="-cp $UTILSDIR$$PATHSEP$utils.jar" />42<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />43<variable name="PROGRAM_HANOI_2" value="org.openj9.test.ivj.Hanoi 3" />4445<variable name="CP_FIB" value="-cp $UTILSDIR$$PATHSEP$utilsBK.jar" />46<variable name="PROGRAM_FIB" value="VMBench/FibBench" />4748<variable name="NON_WINDOWS_PLATFORMS" value="aix.*,linux.*,zos.*,osx.*" />49<variable name="WINDOWS_PLATFORMS" value="win.*" />5051<variable name="EXTRA_OPT_FOR_MPROTECT_NONE" value=" " />52<!-- memory protection is across processes on zos_390-31. If the cache is not created with -Xshareclasses:mprotect=none,53it cannot be reused with -Xshareclasses:mprotect=none. Any update to it may lead to segmentation fault. Disable update54using -Xaot:disableSharedCacheHints.55-->56<variable name="EXTRA_OPT_FOR_MPROTECT_NONE" value="-Xaot:disableSharedCacheHints" platforms="zos_390-31.*" />5758<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>5960<echo value=" "/>61<echo value="#######################################################"/>62<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>63<echo value="#######################################################"/>64<echo value=" "/>6566<!--67Note:68Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.69These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.7071The string 'corrupt' is checked because it can appear several messages like below.72JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.73JVMDUMP013I Processed dump event "corruptcache", detail "".74JVMSHRC442E Shared cache "jim" is corrupt. Corruption code is -1. Corrupt value is 0x0. No new JVMs will be allowed to connect to the cache.75-->7677<test id="Start : Cleanup: persistent" timeout="600" runPath=".">78<command>$JAVA_EXE$ $currentMode$,destroy</command>79<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>80<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>81<output type="success" caseSensitive="yes" regex="no">is destroyed</output>82<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>83<output type="failure" caseSensitive="yes" regex="no">Exception:</output>84<output type="failure" caseSensitive="no" regex="no">corrupt</output>85<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>86</test>8788<test id="Test 200-a: CMVC 197811: Create a full shared cache" timeout="600" runPath=".">89<command>$JAVA_EXE$ $currentMode$ -Xscmx1M $CP_HANOI$ $PROGRAM_HANOI$</command>90<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>91<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>92<output type="failure" caseSensitive="no" regex="no">corrupt</output>93<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>94</test>9596<!-- On windows, full cache has J9SHR_MIN_GAP_BEFORE_METADATA (=1024) free bytes, on other platforms free bytes should be 0 -->97<test id="Test 200-b: CMVC 197811: Make sure cache created in previous test is full" timeout="600" runPath=".">98<command>$JAVA_EXE$ $currentMode$,printStats</command>99<output type="success" caseSensitive="yes" showMatch="yes" platforms="$NON_WINDOWS_PLATFORMS$">Cache is 100% full</output>100<output type="success" caseSensitive="yes" showMatch="yes" platforms="$WINDOWS_PLATFORMS$">Cache is 99% full</output>101<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>102<output type="failure" caseSensitive="yes" regex="no">Exception:</output>103<output type="failure" caseSensitive="no" regex="no">corrupt</output>104<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>105</test>106107<test id="Test 200-c: CMVC 197811: Attach to full cache in readonly mode" timeout="600" runPath=".">108<command>$JAVA_EXE$ $currentMode$,readonly $CP_HANOI$ $PROGRAM_HANOI$</command>109<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>110<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>111<output type="failure" caseSensitive="yes" regex="no">Exception:</output>112<output type="failure" caseSensitive="no" regex="no">corrupt</output>113<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>114</test>115116<test id="Test 200-d: CMVC 197811: Cleanup" timeout="600" runPath=".">117<command>$JAVA_EXE$ $currentMode$,destroy</command>118<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>119<output type="success" caseSensitive="yes" regex="no">is destroyed</output>120<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</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>126127<!-- Tests 201 a-d verify shared cache is BCI disabled when only 'cacheRetransformed' is specified -->128129<test id="Test 201-a Verify shared cache is BCI disabled when 'cacheRetransformed' is specified" timeout="600" runPath=".">130<command>$JAVA_EXE$ $currentMode$,reset,cacheRetransformed -version</command>131<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>132<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>133<output type="failure" caseSensitive="yes" regex="no">Exception:</output>134<output type="failure" caseSensitive="no" regex="no">corrupt</output>135<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>136</test>137138<test id="Test 201-b Verify BCI enabled is false in printstats" timeout="600" runPath=".">139<command>$JAVA_EXE$ $currentMode$,printStats</command>140<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>141<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>142<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>143<output type="failure" caseSensitive="yes" regex="no">Exception:</output>144<output type="failure" caseSensitive="no" regex="no">corrupt</output>145<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>146</test>147148<test id="Test 201-c Destroy previously created cache" timeout="600" runPath=".">149<command>$JAVA_EXE$ $currentMode$,destroy</command>150<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>151<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>152<output type="success" caseSensitive="yes" regex="no">is destroyed</output>153<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>154<output type="failure" caseSensitive="yes" regex="no">Exception:</output>155<output type="failure" caseSensitive="no" regex="no">corrupt</output>156<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>157</test>158159<test id="Test 201-d Verify a verbose message is displayed when 'cacheRetransformed' causes 'disableBCI'" timeout="600" runPath=".">160<command>$JAVA_EXE$ $currentMode$,reset,cacheRetransformed,verbose -version</command>161<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>162<output type="required" caseSensitive="yes" regex="no">Cache creation with the cacheRetransformed option forces disableBCI mode</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>168169<!-- Tests 202a-d Verify behavior of -XX:ShareClassesDisableBCI and -XX:ShareClassesEnableBCI when used together -->170171<test id="Test 202-a: Test -XX:ShareClassesDisableBCI followed by -XX:ShareClassesEnableBCI" timeout="600" runPath=".">172<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesDisableBCI$ $XXShareClassesEnableBCI$ -version</command>173<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</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 202-b: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">181<command>$JAVA_EXE$ $currentMode$,printStats -version</command>182<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>183<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>184<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>185<output type="failure" caseSensitive="yes" regex="no">Exception:</output>186<output type="failure" caseSensitive="no" regex="no">corrupt</output>187<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>188</test>189190<test id="Test 202-c: Test -XX:ShareClassesEnableBCI followed by -XX:ShareClassesDisableBCI" timeout="600" runPath=".">191<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesEnableBCI$ $XXShareClassesDisableBCI$ -version</command>192<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>193<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>194<output type="failure" caseSensitive="yes" regex="no">Exception:</output>195<output type="failure" caseSensitive="no" regex="no">corrupt</output>196<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>197</test>198199<test id="Test 202-d: Ensure BCI Enabled is false in printStats output" timeout="600" runPath=".">200<command>$JAVA_EXE$ $currentMode$,printStats -version</command>201<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>202<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>203<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>204<output type="failure" caseSensitive="yes" regex="no">Exception:</output>205<output type="failure" caseSensitive="no" regex="no">corrupt</output>206<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>207</test>208209<!-- Test 203a-k Verify behavior of -XX:ShareClassesDisableBCI with other -Xshareclasses sub-options -->210211<test id="Test 203-a: Test -Xshareclasses followed by -XX:ShareClassesDisableBCI" timeout="600" runPath=".">212<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesDisableBCI$ -version</command>213<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>214<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>215<output type="failure" caseSensitive="yes" regex="no">Exception:</output>216<output type="failure" caseSensitive="no" regex="no">corrupt</output>217<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>218</test>219220<test id="Test 203-b: Ensure BCI Enabled is false in printStats output" timeout="600" runPath=".">221<command>$JAVA_EXE$ $currentMode$,printStats -version</command>222<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>223<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>224<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>225<output type="failure" caseSensitive="yes" regex="no">Exception:</output>226<output type="failure" caseSensitive="no" regex="no">corrupt</output>227<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>228</test>229230<test id="Test 203-c: Test -XX:ShareClassesDisableBCI followed by -Xshareclasses" timeout="600" runPath=".">231<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,reset -version</command>232<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>233<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>234<output type="failure" caseSensitive="yes" regex="no">Exception:</output>235<output type="failure" caseSensitive="no" regex="no">corrupt</output>236<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>237</test>238239<test id="Test 203-d: Ensure BCI Enabled is false in printStats output" timeout="600" runPath=".">240<command>$JAVA_EXE$ $currentMode$,printStats -version</command>241<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>242<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>243<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>244<output type="failure" caseSensitive="yes" regex="no">Exception:</output>245<output type="failure" caseSensitive="no" regex="no">corrupt</output>246<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>247</test>248249<test id="Test 203-e: Destroy any existing cache" timeout="600" runPath=".">250<command>$JAVA_EXE$ $currentMode$,destroy</command>251<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>252<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>253<output type="success" caseSensitive="yes" regex="no">is destroyed</output>254<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>255<output type="failure" caseSensitive="yes" regex="no">Exception:</output>256<output type="failure" caseSensitive="no" regex="no">corrupt</output>257<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>258</test>259260<test id="Test 203-f: Try to use -XX:ShareClassesDisableBCI after -Xshareclasses:none to create a cache" timeout="600" runPath=".">261<command>$JAVA_EXE$ $currentMode$,none $XXShareClassesDisableBCI$ -version</command>262<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>263<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>264<output type="failure" caseSensitive="yes" regex="no">Exception:</output>265<output type="failure" caseSensitive="no" regex="no">corrupt</output>266<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>267</test>268269<test id="Test 203-g: Verify that cache is not created by previous test" timeout="600" runPath=".">270<command>$JAVA_EXE$ $currentMode$,printStats -version</command>271<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>272<output type="failure" caseSensitive="no" regex="no">Current statistics</output>273<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>274<output type="failure" caseSensitive="yes" regex="no">Exception:</output>275<output type="failure" caseSensitive="no" regex="no">corrupt</output>276<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>277</test>278279<test id="Test 203-h: Try to use -XX:ShareClassesDisableBCI before -Xshareclasses:none to create a cache" timeout="600" runPath=".">280<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,none -version</command>281<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</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 203-i: Verify that cache is not created by previous test" timeout="600" runPath=".">289<command>$JAVA_EXE$ $currentMode$,printStats -version</command>290<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>291<output type="failure" caseSensitive="no" regex="no">Current statistics</output>292<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>293<output type="failure" caseSensitive="yes" regex="no">Exception:</output>294<output type="failure" caseSensitive="no" regex="no">corrupt</output>295<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>296</test>297298<test id="Test 203-j: Try to use -XX:ShareClassesDisableBCI without -Xshareclasses to create a cache" timeout="600" runPath=".">299<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ -version</command>300<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>301<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>302<output type="failure" caseSensitive="yes" regex="no">Exception:</output>303<output type="failure" caseSensitive="no" regex="no">corrupt</output>304<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>305</test>306307<test id="Test 203-k: Verify that cache is not created by previous test" timeout="600" runPath=".">308<command>$JAVA_EXE$ $currentMode$,printStats -version</command>309<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>310<output type="failure" caseSensitive="no" regex="no">Current statistics</output>311<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>312<output type="failure" caseSensitive="yes" regex="no">Exception:</output>313<output type="failure" caseSensitive="no" regex="no">corrupt</output>314<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>315</test>316317<!-- Tests 204a-p test the behavior of '-XX:ShareClassesDisableBCI' on an existing cache that supports BCI -->318319<test id="Test 204-a: Create a cache with BCI support" timeout="600" runPath=".">320<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>321<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>322<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>323<output type="failure" caseSensitive="yes" regex="no">Exception:</output>324<output type="failure" caseSensitive="no" regex="no">corrupt</output>325<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>326</test>327328<test id="Test 204-b: Ensure cache created with enableBCI option is not usable with -XX:ShareClassesDisableBCI option" timeout="600" runPath=".">329<command>$JAVA_EXE$ $currentMode$ $XXShareClassesDisableBCI$ -version</command>330<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Initialization error for library j9shr*</output>331<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>332<output type="failure" caseSensitive="yes" regex="no">Exception:</output>333<output type="failure" caseSensitive="no" regex="no">corrupt</output>334<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>335</test>336337<test id="Test 204-c: Verify that using '-XX:ShareClassesDisableBCI' with 'nonfatal' sub-option on an existing BCI enabled cache does not abort JVM" timeout="600" runPath=".">338<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,nonfatal,verboseIO -version</command>339<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>340<output type="failure" caseSensitive="yes" regex="no">Found class</output>341<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>342<output type="failure" caseSensitive="yes" regex="no">Exception:</output>343<output type="failure" caseSensitive="no" regex="no">corrupt</output>344<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>345</test>346347<test id="Test 204-d: Run 'printStats' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified before it" timeout="600" runPath=".">348<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,printStats -version</command>349<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>350<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</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>356357<test id="Test 204-e: Run 'printStats' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified after it" timeout="600" runPath=".">358<command>$JAVA_EXE$ $currentMode$,printStats $XXShareClassesDisableBCI$ -version</command>359<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>360<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>361<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>362<output type="failure" caseSensitive="yes" regex="no">Exception:</output>363<output type="failure" caseSensitive="no" regex="no">corrupt</output>364<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>365</test>366367<test id="Test 204-f: Run 'listAllCaches' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified before it" timeout="600" runPath=".">368<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,listAllCaches -version</command>369<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>370<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>371<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>372<output type="failure" caseSensitive="yes" regex="no">Exception:</output>373<output type="failure" caseSensitive="no" regex="no">corrupt</output>374<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>375</test>376377<test id="Test 204-g: Run 'listAllCaches' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' sub-option specified after it" timeout="600" runPath=".">378<command>$JAVA_EXE$ $currentMode$,listAllCaches $XXShareClassesDisableBCI$ -version</command>379<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>380<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>381<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>382<output type="failure" caseSensitive="yes" regex="no">Exception:</output>383<output type="failure" caseSensitive="no" regex="no">corrupt</output>384<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>385</test>386387<test id="Test 204-h: Run 'destroy' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified before it" timeout="600" runPath=".">388<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,destroy</command>389<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>390<output type="success" caseSensitive="yes" regex="no">is destroyed</output>391<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>392<output type="failure" caseSensitive="yes" regex="no">Exception:</output>393<output type="failure" caseSensitive="no" regex="no">corrupt</output>394<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>395</test>396397<test id="Test 204-i: Create a cache with BCI support" timeout="600" runPath=".">398<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>399<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</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 204-j: Run 'destroy' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified after it" timeout="600" runPath=".">407<command>$JAVA_EXE$ $currentMode$,destroy $XXShareClassesDisableBCI$</command>408<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>409<output type="success" caseSensitive="yes" regex="no">is destroyed</output>410<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>411<output type="failure" caseSensitive="yes" regex="no">Exception:</output>412<output type="failure" caseSensitive="no" regex="no">corrupt</output>413<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>414</test>415416<test id="Test 204-k: Create a cache with BCI support" timeout="600" runPath=".">417<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>418<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>419<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>420<output type="failure" caseSensitive="yes" regex="no">Exception:</output>421<output type="failure" caseSensitive="no" regex="no">corrupt</output>422<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>423</test>424425<test id="Test 204-l: Run 'reset' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified before it" timeout="600" runPath=".">426<command>$JAVA_EXE$ $XXShareClassesDisableBCI$ $currentMode$,reset -version</command>427<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>428<output type="success" caseSensitive="yes" regex="no">is destroyed</output>429<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>430<output type="failure" caseSensitive="yes" regex="no">Exception:</output>431<output type="failure" caseSensitive="no" regex="no">corrupt</output>432<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>433</test>434435<test id="Test 204-m: Verify BCI enabled is false in printStats output" timeout="600" runPath=".">436<command>$JAVA_EXE$ $currentMode$,printStats -version</command>437<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>438<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</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="Test 204-n: Create a cache with BCI support" timeout="600" runPath=".">446<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>447<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>448<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>449<output type="failure" caseSensitive="yes" regex="no">Exception:</output>450<output type="failure" caseSensitive="no" regex="no">corrupt</output>451<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>452</test>453454<test id="Test 204-o: Run 'reset' on an existing BCI enabled cache with '-XX:ShareClassesDisableBCI' option specified after it" timeout="600" runPath=".">455<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesDisableBCI$ -version</command>456<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>457<output type="success" caseSensitive="yes" regex="no">is destroyed</output>458<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>459<output type="failure" caseSensitive="yes" regex="no">Exception:</output>460<output type="failure" caseSensitive="no" regex="no">corrupt</output>461<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>462</test>463464<test id="Test 204-p: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">465<command>$JAVA_EXE$ $currentMode$,printStats -version</command>466<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>467<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>468<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>469<output type="failure" caseSensitive="yes" regex="no">Exception:</output>470<output type="failure" caseSensitive="no" regex="no">corrupt</output>471<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>472</test>473474<!-- Tests 205a-m test -Xshareclasses:restrictClasspaths and -Xshareclasses:allowClasspaths options475added under WI Jazz103 "76572: Design : Add shared cache option to control if JVM can store classpaths into the cache"476-->477<test id="Test 205-a: Create a new cache with -Xshareclasses:restrictClasspaths option. Also generate a javacore to be used in later tests." timeout="600" runPath=".">478<command>$JAVA_EXE$ $currentMode$,restrictClasspaths,reset,verbose -Xdump:java:events=vmstop,file=javacore.txt -version</command>479<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>480<output type="required" caseSesitive="yes" regex="no">JVM has created shared cache with '-Xshareclasses:restrictClasspaths' option</output>481<output type="required" caseSensitive="yes" regex="no">Processed dump event</output>482<output type="required" caseSensitive="yes" regex="no">javacore.txt</output>483<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>484<output type="failure" caseSensitive="yes" regex="no">Exception:</output>485<output type="failure" caseSensitive="no" regex="no">corrupt</output>486</test>487488<test id="Test 205-b: Verify 'Restrict Classpaths = true' and # classpath = 1 (i.e. bootclasspath) in printStats output" timeout="600" runPath=".">489<command>$JAVA_EXE$ $currentMode$,printStats</command>490<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= true</output>491<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Classpaths[\s]*= 1</output>492<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>493<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>494<output type="failure" caseSensitive="yes" regex="no">Exception:</output>495<output type="failure" caseSensitive="no" regex="no">corrupt</output>496<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>497</test>498499<test id="Test 205-c: Ensure 'Restrict Classpaths = true' and # classpaths is 1 in javacore" timeout="600" runPath=".">500<command>cat javacore.txt</command>501<output type="success" caseSensitive="no" regex="no">SHARED CLASSES subcomponent</output>502<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= true</output>503</test>504505<exec command="rm -f javacore.txt" quiet="false"/>506507<test id="Test 205-d: Using existing cache run an application which uses a classpath not present in the cache. Verify the trace point prohibiting addition of classpath is triggered." timeout="600" runPath=".">508<command>$JAVA_EXE$ $currentMode$,verbose -Xtrace:print={j9shr.2097} $CP_HANOI$ $PROGRAM_HANOI$</command>509<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>510<output type="required" caseSensitive="yes" regex="no">JVM cannot store classpaths into the shared cache</output>511<output type="required" caseSensitive="yes" regex="no">JVM is not allowed to store classpaths to the cache</output>512<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>513<output type="failure" caseSensitive="no" regex="no">corrupt</output>514<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>515</test>516517<test id="Test 205-e: Verify the class loaded from the classpath in previous test is present in cache as ORPHAN only and the classpath is not stored in the cache." timeout="600" runPath=".">518<command>$JAVA_EXE$ $currentMode$,printAllStats=orphan+romclass</command>519<output type="success" caseSensitive="yes" regex="no">ORPHAN: org/openj9/test/ivj/Hanoi</output>520<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= true</output>521<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Classpaths[\s]*= 1</output>522<output type="failure" caseSensitive="yes" regex="no">ROMCLASS: org/openj9/test/ivj/Hanoi</output>523<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes" platforms="$NON_WINDOWS_PLATFORMS$">utils/utils.jar</output>524<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes" platforms="$WINDOWS_PLATFORMS$">utils\\utils.jar</output>525<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>526<output type="failure" caseSensitive="no" regex="no">corrupt</output>527<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>528</test>529530<test id="Test 205-f: Using existing cache run same application as before but with -Xshareclasses:allowClasspaths option. Verify the trace point prohibiting addition of classpath is not triggered." timeout="600" runPath=".">531<command>$JAVA_EXE$ $currentMode$,allowClasspaths,verbose -Xtrace:print={j9shr.2097} $CP_HANOI$ $PROGRAM_HANOI$</command>532<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>533<output type="required" caseSensitive="yes" regex="no">JVM can store classpaths into the shared cache</output>534<output type="failure" caseSensitive="yes" regex="yes" javaUtilPatter="yes">j9shr.2097[\s]*.*JVM is not allowed to store classpaths to the cache</output>535<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>536<output type="failure" caseSensitive="no" regex="no">corrupt</output>537<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>538</test>539540<test id="Test 205-g: Verify the class loaded from the classpath in previous test is now present in cache as ROMCLASS and the classpath exists in the cache" timeout="600" runPath=".">541<command>$JAVA_EXE$ $currentMode$,printAllStats=romclass+classpath</command>542<output type="success" caseSensitive="yes" regex="no">ROMCLASS: org/openj9/test/ivj/Hanoi</output>543<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes" platforms="$NON_WINDOWS_PLATFORMS$">utils/utils.jar</output>544<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes" platforms="$WINDOWS_PLATFORMS$">utils\\utils.jar</output>545<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= true</output>546<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Classpaths[\s]*= 2</output>547<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>548<output type="failure" caseSensitive="no" regex="no">corrupt</output>549<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>550</test>551552<test id="Test 205-h: Using existing cache run another application without -Xshareclasses:allowClasspaths option. Verify the trace point prohibiting addition of classpath is triggered." timeout="600" runPath=".">553<exec command="cp $UTILSDIR$$PATHSEP$utils.jar $UTILSDIR$$PATHSEP$utilsBK.jar"/>554<command>$JAVA_EXE$ $currentMode$,verbose -Xtrace:print={j9shr.2097} $CP_FIB$ $PROGRAM_FIB$</command>555<output type="success" caseSenditive="no" regex="no">Fibonacci: iterations</output>556<output type="required" caseSensitive="yes" regex="no">JVM cannot store classpaths into the shared cache</output>557<output type="required" caseSensitive="yes" regex="no">JVM is not allowed to store classpaths to the cache</output>558<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>559<output type="failure" caseSensitive="no" regex="no">corrupt</output>560<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>561</test>562563<test id="Test 205-i: Verify the class loaded from the classpath in previous test is present in cache as ORPHAN and the classpath does not exist in the cache" timeout="600" runPath=".">564<command>$JAVA_EXE$ $currentMode$,printAllStats=orphan+romclass+classpath</command>565<output type="success" caseSensitive="yes" regex="no">ORPHAN: VMBench/FibBench</output>566<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= true</output>567<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Classpaths[\s]*= 2</output>568<output type="failure" caseSensitive="yes" regex="no">ROMCLASS: VMBench/FibBench</output>569<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">utilsBK.jar</output>570<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>571<output type="failure" caseSensitive="no" regex="no">corrupt</output>572<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>573</test>574575<test id="Test 205-j: Create a new shared cache without -Xshareclasses:restrictClasspaths option" timeout="600" runPath=".">576<command>$JAVA_EXE$ $currentMode$,reset,verbose -version</command>577<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>578<output type="failure" caseSesitive="yes" regex="no">created shared cache with '-Xshareclasses:restrictClasspaths' option</output>579<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>580<output type="failure" caseSensitive="yes" regex="no">Exception:</output>581<output type="failure" caseSensitive="no" regex="no">corrupt</output>582</test>583584<test id="Test 205-k: Re-use shared cache created in previous test with -Xshareclasses:restrictClasspaths option. Also generate a javacore to be used in subsequent test." timeout="600" runPath=".">585<command>$JAVA_EXE$ $currentMode$,restrictClasspaths,verbose -Xdump:java:events=vmstop,file=javacore.txt -version</command>586<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>587<output type="required" caseSesitive="yes" regex="no">JVM has ignored '-Xshareclasses:restrictClasspaths' option</output>588<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>589<output type="failure" caseSensitive="yes" regex="no">Exception:</output>590<output type="failure" caseSensitive="no" regex="no">corrupt</output>591</test>592593<test id="Test 205-l: Verify 'Restrict Classpaths = false' in printStats output" timeout="600" runPath=".">594<command>$JAVA_EXE$ $currentMode$,printStats</command>595<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= false</output>596<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>597<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>598<output type="failure" caseSensitive="yes" regex="no">Exception:</output>599<output type="failure" caseSensitive="no" regex="no">corrupt</output>600<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>601</test>602603<test id="Test 205-m: Ensure 'Restrict Classpaths = false' in javacore" timeout="600" runPath=".">604<command>cat javacore.txt</command>605<output type="success" caseSensitive="no" regex="no">SHARED CLASSES subcomponent</output>606<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Restrict Classpaths[\s]*= false</output>607</test>608609<exec command="rm -f javacore.txt" quiet="false"/>610611<!-- Tests 206a-aa test -Xshareclasses:mprotect=[onfind|partialpagesonstartup|partialpages|def|nopartialpages] options.612added under WI Jazz103 "95085: Ensure last partially filled pages in shared cache are kept write protected"613Note that these tests are not run on 64-bit z/OS as memory protection is always disabled on this platform. See VM_Test/VM/shareClasses/exclude.xml.614-->615<test id="Test 206-a: Create a new cache with -Xshareclasses:mprotect=default option." timeout="600" runPath=".">616<command>$JAVA_EXE$ $currentMode$,mprotect=default,verbose,reset -version</command>617<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>618<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>619<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>620<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>621<output type="failure" caseSensitive="yes" regex="no">Exception:</output>622<output type="failure" caseSensitive="no" regex="no">corrupt</output>623</test>624625<test id="Test 206-b: Reuse the cache with -Xshareclasses:mprotect=onfind option." timeout="600" runPath=".">626<command>$JAVA_EXE$ $currentMode$,mprotect=onfind,verbose -version</command>627<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>628<!-- On linux and windows verify cache is being used with partial page protection enabled. -->629<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>630<!-- On z/OS and AIX verify partial page protection is not enabled. -->631<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has disabled protecting partially filled pages. If '-Xshareclasses:mprotect=onfind' is specified, it is also ignored.</output>632<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>633<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>634<output type="failure" caseSensitive="yes" regex="no">Exception:</output>635<output type="failure" caseSensitive="no" regex="no">corrupt</output>636</test>637638<test id="Test 206-c: Reuse the cache with -Xshareclasses:mprotect=partialpagesonstartup option." timeout="600" runPath=".">639<command>$JAVA_EXE$ $currentMode$,mprotect=partialpagesonstartup,verbose -version</command>640<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>641<!-- On linux and windows verify cache is used with partial page protection not enabled on startup -->642<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>643<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has not enabled protecting shared cache partially filled pages on startup</output>644<!-- On z/OS and AIX verify partial page protection is not enabled. -->645<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has disabled protecting partially filled pages. If '-Xshareclasses:mprotect=onfind' is specified, it is also ignored</output>646<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>647<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>648<output type="failure" caseSensitive="yes" regex="no">Exception:</output>649<output type="failure" caseSensitive="no" regex="no">corrupt</output>650</test>651652<test id="Test 206-d: Reuse the cache with -Xshareclasses:mprotect=partialpages option." timeout="600" runPath=".">653<command>$JAVA_EXE$ $currentMode$,mprotect=partialpages,verbose -version</command>654<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>655<!-- On linux and windows verify cache is being used with partial page protection enabled. -->656<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>657<!-- On z/OS and AIX verify partial page protection is not enabled. -->658<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has disabled protecting partially filled pages. If '-Xshareclasses:mprotect=onfind' is specified, it is also ignored</output>659<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>660<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>661<output type="failure" caseSensitive="yes" regex="no">Exception:</output>662<output type="failure" caseSensitive="no" regex="no">corrupt</output>663</test>664665<test id="Test 206-e: Reuse the cache without any -Xshareclasses:mprotect=<> option." timeout="600" runPath=".">666<command>$JAVA_EXE$ $currentMode$,verbose -version</command>667<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>668<!-- On linux and windows verify cache is being used with partial page protection enabled. -->669<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>670<!-- On z/OS and AIX verify partial page protection is not enabled. -->671<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>672<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>673<output type="failure" caseSensitive="yes" regex="no">Exception:</output>674<output type="failure" caseSensitive="no" regex="no">corrupt</output>675</test>676677<test id="Test 206-f: Reuse the cache with -Xshareclasses:mprotect=nopartialpages option." timeout="600" runPath=".">678<command>$JAVA_EXE$ $currentMode$,mprotect=nopartialpages,verbose -version</command>679<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>680<!-- On linux and windows verify cache is being used with partial page protection enabled. -->681<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>682<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>683<!-- On z/OS and AIX verify partial page protection is not enabled. -->684<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>685<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>686<output type="failure" caseSensitive="yes" regex="no">Exception:</output>687<output type="failure" caseSensitive="no" regex="no">corrupt</output>688</test>689690<test id="Test 206-g: Reuse the cache with -Xshareclasses:mprotect=none option." timeout="600" runPath=".">691<command>$JAVA_EXE$ $currentMode$,mprotect=none,verbose $EXTRA_OPT_FOR_MPROTECT_NONE$ -version</command>692<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>693<!-- On linux and windows verify cache is being used with partial page protection enabled. -->694<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>695<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>696<!-- On z/OS and AIX verify memory protection is disabled. -->697<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection disabled for cache</output>698<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>699<output type="failure" caseSensitive="yes" regex="no">Exception:</output>700<output type="failure" caseSensitive="no" regex="no">corrupt</output>701</test>702703<test id="Test 206-h: Create a new cache with -Xshareclasses:mprotect=partialpagesonstartup option." timeout="600" runPath=".">704<command>$JAVA_EXE$ $currentMode$,mprotect=partialpagesonstartup,verbose,reset -version</command>705<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>706<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>707<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>708<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>709<output type="failure" caseSensitive="yes" regex="no">Exception:</output>710<output type="failure" caseSensitive="no" regex="no">corrupt</output>711</test>712713<test id="Test 206-i: Reuse the cache with -Xshareclasses:mprotect=onfind option." timeout="600" runPath=".">714<command>$JAVA_EXE$ $currentMode$,mprotect=onfind,verbose -version</command>715<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>716<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection on startup as the existing shared cache was created with partial page protection enabled on startup</output>717<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>718<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>719<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>720<output type="failure" caseSensitive="yes" regex="no">Exception:</output>721<output type="failure" caseSensitive="no" regex="no">corrupt</output>722</test>723724<test id="Test 206-j: Reuse the cache with -Xshareclasses:mprotect=default option." timeout="600" runPath=".">725<command>$JAVA_EXE$ $currentMode$,mprotect=default,verbose -version</command>726<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>727<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection on startup as the existing shared cache was created with partial page protection enabled on startup</output>728<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>729<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>730<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>731<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>732<output type="failure" caseSensitive="yes" regex="no">Exception:</output>733<output type="failure" caseSensitive="no" regex="no">corrupt</output>734</test>735736<test id="Test 206-k: Reuse the cache without any -Xshareclasses:mprotect=<> option." timeout="600" runPath=".">737<command>$JAVA_EXE$ $currentMode$,verbose -version</command>738<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>739<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection on startup as the existing shared cache was created with partial page protection enabled on startup</output>740<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>741<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>742<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>743<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>744<output type="failure" caseSensitive="yes" regex="no">Exception:</output>745<output type="failure" caseSensitive="no" regex="no">corrupt</output>746</test>747748<test id="Test 206-l: Reuse the cache with -Xshareclasses:mprotect=nopartialpages option." timeout="600" runPath=".">749<command>$JAVA_EXE$ $currentMode$,mprotect=nopartialpages,verbose -version</command>750<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>751<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection on startup as the existing shared cache was created with partial page protection enabled on startup</output>752<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>753<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>754<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>755<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>756<output type="failure" caseSensitive="yes" regex="no">Exception:</output>757<output type="failure" caseSensitive="no" regex="no">corrupt</output>758</test>759760<test id="Test 206-m: Reuse the cache with -Xshareclasses:mprotect=none option." timeout="600" runPath=".">761<command>$JAVA_EXE$ $currentMode$,mprotect=none,verbose $EXTRA_OPT_FOR_MPROTECT_NONE$ -version</command>762<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>763<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection on startup as the existing shared cache was created with partial page protection enabled on startup</output>764<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>765<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>766<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>767<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>768<output type="failure" caseSensitive="yes" regex="no">Exception:</output>769<output type="failure" caseSensitive="no" regex="no">corrupt</output>770</test>771772<test id="Test 206-n: Create a new cache with -Xshareclasses:mprotect=partialpages option." timeout="600" runPath=".">773<command>$JAVA_EXE$ $currentMode$,mprotect=partialpages,verbose,reset -version</command>774<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>775<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>776<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>777<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>778<output type="failure" caseSensitive="yes" regex="no">Exception:</output>779<output type="failure" caseSensitive="no" regex="no">corrupt</output>780</test>781782<test id="Test 206-o: Reuse the cache with -Xshareclasses:mprotect=onfind option." timeout="600" runPath=".">783<command>$JAVA_EXE$ $currentMode$,mprotect=onfind,verbose -version</command>784<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>785<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>786<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>787<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>788<output type="failure" caseSensitive="yes" regex="no">Exception:</output>789<output type="failure" caseSensitive="no" regex="no">corrupt</output>790</test>791792<test id="Test 206-p: Reuse the cache with -Xshareclasses:mprotect=partialpagesonstartup option." timeout="600" runPath=".">793<command>$JAVA_EXE$ $currentMode$,mprotect=partialpagesonstartup,verbose -version</command>794<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>795<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,linux.*,win.*">The JVM has not enabled protecting shared cache partially filled pages on startup</output>796<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>797<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>798<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>799<output type="failure" caseSensitive="yes" regex="no">Exception:</output>800<output type="failure" caseSensitive="no" regex="no">corrupt</output>801</test>802803<test id="Test 206-q: Reuse the cache with -Xshareclasses:mprotect=default option." timeout="600" runPath=".">804<command>$JAVA_EXE$ $currentMode$,mprotect=default,verbose -version</command>805<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>806<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>807<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>808<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>809<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>810<output type="failure" caseSensitive="yes" regex="no">Exception:</output>811<output type="failure" caseSensitive="no" regex="no">corrupt</output>812</test>813814<test id="Test 206-r: Reuse the cache without any -Xshareclasses:mprotect=<> option." timeout="600" runPath=".">815<command>$JAVA_EXE$ $currentMode$,verbose -version</command>816<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>817<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>818<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>819<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>820<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>821<output type="failure" caseSensitive="yes" regex="no">Exception:</output>822<output type="failure" caseSensitive="no" regex="no">corrupt</output>823</test>824825<test id="Test 206-s: Reuse the cache with -Xshareclasses:mprotect=nopartialpages option." timeout="600" runPath=".">826<command>$JAVA_EXE$ $currentMode$,mprotect=nopartialpages,verbose -version</command>827<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>828<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>829<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>830<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>831<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>832<output type="failure" caseSensitive="yes" regex="no">Exception:</output>833<output type="failure" caseSensitive="no" regex="no">corrupt</output>834</test>835836<test id="Test 206-t: Reuse the cache with -Xshareclasses:mprotect=none option." timeout="600" runPath=".">837<command>$JAVA_EXE$ $currentMode$,mprotect=none,verbose $EXTRA_OPT_FOR_MPROTECT_NONE$ -version</command>838<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>839<output type="required" caseSensitive="yes" regex="no">The JVM has enabled shared cache partial page protection as the existing shared cache was created with partial page protection enabled</output>840<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data, string read-write data and partially filled pages is successfully enabled</output>841<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data and partially filled pages is successfully enabled</output>842<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>843<output type="failure" caseSensitive="yes" regex="no">Exception:</output>844<output type="failure" caseSensitive="no" regex="no">corrupt</output>845</test>846847<test id="Test 206-u: Create a cache with -Xshareclasses:mprotect=nopartialpages option." timeout="600" runPath=".">848<command>$JAVA_EXE$ $currentMode$,mprotect=nopartialpages,verbose,reset -version</command>849<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>850<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data and string read-write data is successfully enabled</output>851<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>852<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>853<output type="failure" caseSensitive="yes" regex="no">Exception:</output>854<output type="failure" caseSensitive="no" regex="no">corrupt</output>855</test>856857<test id="Test 206-v: Reuse the cache with -Xshareclasses:mprotect=onfind option and verify partial page protection is not enabled." timeout="600" runPath=".">858<command>$JAVA_EXE$ $currentMode$,mprotect=onfind,verbose -version</command>859<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>860<output type="required" caseSensitive="yes" regex="no">The JVM has disabled protecting partially filled pages. If '-Xshareclasses:mprotect=onfind' is specified, it is also ignored</output>861<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data and string read-write data is successfully enabled</output>862<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>863<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>864<output type="failure" caseSensitive="yes" regex="no">Exception:</output>865<output type="failure" caseSensitive="no" regex="no">corrupt</output>866</test>867868<test id="Test 206-w: Reuse the cache with -Xshareclasses:mprotect=partialpagesonstartup option and verify partial page protection is not enabled." timeout="600" runPath=".">869<command>$JAVA_EXE$ $currentMode$,mprotect=partialpagesonstartup,verbose -version</command>870<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>871<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has disabled protecting partially filled pages</output>872<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data and string read-write data is successfully enabled</output>873<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>874<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>875<output type="failure" caseSensitive="yes" regex="no">Exception:</output>876<output type="failure" caseSensitive="no" regex="no">corrupt</output>877</test>878879<test id="Test 206-x: Reuse the cache with -Xshareclasses:mprotect=partialpages option and verify partial page protection is not enabled." timeout="600" runPath=".">880<command>$JAVA_EXE$ $currentMode$,mprotect=partialpages,verbose -version</command>881<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>882<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has disabled protecting partially filled pages</output>883<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data and string read-write data is successfully enabled</output>884<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>885<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>886<output type="failure" caseSensitive="yes" regex="no">Exception:</output>887<output type="failure" caseSensitive="no" regex="no">corrupt</output>888</test>889890<test id="Test 206-y: Reuse the cache with -Xshareclasses:mprotect=default option and verify partial page protection is not enabled." timeout="600" runPath=".">891<command>$JAVA_EXE$ $currentMode$,mprotect=default,verbose -version</command>892<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>893<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has disabled protecting partially filled pages</output>894<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data and string read-write data is successfully enabled</output>895<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>896<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>897<output type="failure" caseSensitive="yes" regex="no">Exception:</output>898<output type="failure" caseSensitive="no" regex="no">corrupt</output>899</test>900901<test id="Test 206-z: Reuse the cache without any -Xshareclasses:mprotect=<> option and verify partial page protection is not enabled." timeout="600" runPath=".">902<command>$JAVA_EXE$ $currentMode$,verbose -version</command>903<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>904<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">The JVM has disabled protecting partially filled pages</output>905<output type="required" caseSensitive="yes" regex="no" platforms="linux.*,win.*">Memory page protection on runtime data and string read-write data is successfully enabled</output>906<output type="required" caseSensitive="yes" regex="no" platforms="aix.*,zos.*">Memory page protection on runtime data is successfully enabled</output>907<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>908<output type="failure" caseSensitive="yes" regex="no">Exception:</output>909<output type="failure" caseSensitive="no" regex="no">corrupt</output>910</test>911912<test id="Test 206-aa: Reuse the cache with -Xshareclasses:mprotect=none option and verify that memory protection is disabled." timeout="600" runPath=".">913<command>$JAVA_EXE$ $currentMode$,mprotect=none,verbose $EXTRA_OPT_FOR_MPROTECT_NONE$ -version</command>914<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>915<output type="required" caseSensitive="yes" regex="no">Memory page protection disabled for cache</output>916<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>917<output type="failure" caseSensitive="yes" regex="no">Exception:</output>918<output type="failure" caseSensitive="no" regex="no">corrupt</output>919</test>920921<test id="Test 206: cleanup" timeout="600" runPath=".">922<command>$JAVA_EXE$ $currentMode$,destroy</command>923<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>924<output type="success" caseSensitive="yes" regex="no">is destroyed</output>925<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>926<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>927<output type="failure" caseSensitive="yes" regex="no">Exception:</output>928<output type="failure" caseSensitive="no" regex="no">corrupt</output>929<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>930</test>931932<test id="Test 207: Create a non-persistent cache" timeout="600" runPath=".">933<command>$JAVA_EXE$ -Xtrace:print=j9prt.700 $currentMode$,nonpersistent -version</command>934<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>935936<!-- Check for non-fatal message in ControlFileOpenWithWriteLock() -->937<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">j9prt.700.*ControlFileFDWithWriteLock\(Info:</output>938<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>939<output type="failure" caseSensitive="yes" regex="no">Exception:</output>940<output type="failure" caseSensitive="no" regex="no">corrupt</output>941<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>942</test>943944<test id="Test 207 cleanup: destroy non-persistent cache" timeout="600" runPath=".">945<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>946<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>947<output type="success" caseSensitive="yes" regex="no">is destroyed</output>948<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>949<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>950<output type="failure" caseSensitive="yes" regex="no">Exception:</output>951<output type="failure" caseSensitive="no" regex="no">corrupt</output>952<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>953</test>954955<!-- Since running Hanoi with -Xjit option does not store the startup hint to the shared chache, we use -Xint here -->956<test id="Test 208-a: Create a new cache to test -Xshareclasses:printStats=startuphint" timeout="600" runPath=".">957<command>$JAVA_EXE$ $currentMode$ -Xint $CP_HANOI$ $PROGRAM_HANOI$</command>958<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>959960<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>961<output type="failure" caseSensitive="no" regex="no">corrupt</output>962<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>963</test>964965<test id="Test 208-b: Check whether -Xshareclasses:printStats=startuphint works properly" timeout="600" runPath=".">966<command>$JAVA_EXE$ $currentMode$,printStats=startuphint</command>967<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">STARTUP HINTS KEY:</output>968<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes"># Startup hints[\s]*= 1</output>969970<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Startup hint bytes[\s]*= 0</output>971<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes"># Startup hints[\s]*= 0</output>972<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>973<output type="failure" caseSensitive="no" regex="no">corrupt</output>974<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>975</test>976977<!-- Since running Hanoi with -Xjit option does not store the startup hint to the shared chache, we use -Xint here -->978<test id="Test 208-c: Run the test again with a different argument" timeout="600" runPath=".">979<command>$JAVA_EXE$ $currentMode$ -Xint $CP_HANOI$ $PROGRAM_HANOI_2$</command>980<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>981982<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>983<output type="failure" caseSensitive="no" regex="no">corrupt</output>984<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>985</test>986987<test id="Test 208-d: Make sure -Xshareclasses:printStats=startuphint still works properly for another test" timeout="600" runPath=".">988<command>$JAVA_EXE$ $currentMode$,printStats=startuphint</command>989<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">STARTUP HINTS KEY:</output>990<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes"># Startup hints[\s]*= 2</output>991992<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Startup hint bytes[\s]*= 0</output>993<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes"># Startup hints[\s]*= 0</output>994<output type="failure" caseSensitive="yes" regex="yes" javaUtilPattern="yes"># Startup hints[\s]*= 1</output>995<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>996<output type="failure" caseSensitive="no" regex="no">corrupt</output>997<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>998</test>9991000<test id="Test 208 cleanup" timeout="600" runPath=".">1001<command>$JAVA_EXE$ $currentMode$,destroy</command>1002<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>1003<output type="success" caseSensitive="yes" regex="no">is destroyed</output>1004<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>1005<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>1006<output type="failure" caseSensitive="yes" regex="no">Exception:</output>1007<output type="failure" caseSensitive="no" regex="no">corrupt</output>1008<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>1009</test>10101011<test id="At end destroy cache for cleanup" timeout="600" runPath=".">1012<command>$JAVA_EXE$ $currentMode$,destroy</command>1013<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>1014<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>1015<output type="success" caseSensitive="yes" regex="no">is destroyed</output>10161017<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>1018<output type="failure" caseSensitive="yes" regex="no">Exception:</output>1019<output type="failure" caseSensitive="no" regex="no">corrupt</output>1020<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>1021<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>1022<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>1023</test>10241025<!--1026***** IMPORTANT NOTE *****1027The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.1028-->1029</suite>10301031