284 -XX:+HeapDumpOnOutOfMemoryError |
284 -XX:+HeapDumpOnOutOfMemoryError |
285 |
285 |
286 # turn on assertions for tests |
286 # turn on assertions for tests |
287 run.test.jvmargs.main=${run.test.jvmargs.common} -ea |
287 run.test.jvmargs.main=${run.test.jvmargs.common} -ea |
288 |
288 |
289 # extra jvmargs that might be useful for debugging |
289 # Extra jvmargs that might be useful for debugging |
|
290 # and performance improvements/monitoring |
290 # |
291 # |
291 # -XX:+UnlockDiagnosticVMOptions |
292 # -XX:+UnlockDiagnosticVMOptions |
292 # |
293 # |
293 # turn off compressed class pointers in metaspace |
294 # turn off compressed class pointers in metaspace |
294 # -XX:-UseCompressedKlassPointers |
295 # -XX:-UseCompressedKlassPointers |
302 # print out methods compiled |
303 # print out methods compiled |
303 # -XX:+PrintCompilation |
304 # -XX:+PrintCompilation |
304 # |
305 # |
305 # print all compiled nmethods with oopmaps and lots of other info |
306 # print all compiled nmethods with oopmaps and lots of other info |
306 # -XX:+PrintNMethods |
307 # -XX:+PrintNMethods |
|
308 # |
|
309 # activate the generic "UseNewCode" flag to test whatever functionality |
|
310 # lies behind it. This is the preferred way to test a, yet flagless, |
|
311 # feature in HotSpot - for example, the uncommon trap placement fix |
|
312 # was hidden behind this flag before it became the default |
|
313 # |
|
314 # -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode |
|
315 # |
|
316 # Crank up the type profile level to 222, which has some warmup |
|
317 # penalties, but produces much better code for JavaScript, where better |
|
318 # and more intrusive type profiling is required to get rid of |
|
319 # a large amount of unnecessary guard code, that could not otherwise |
|
320 # be eliminated |
|
321 # |
|
322 # -XX:TypeProfileLevel=222 |
|
323 # |
307 |
324 |
308 # Use best known performance options for octane |
325 # Use best known performance options for octane |
309 run.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode -XX:TypeProfileLevel=222 |
326 run.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:TypeProfileLevel=222 |
310 |
327 |
311 # Security manager args - make sure that we run with the nashorn.policy that the build creates |
328 # Security manager args - make sure that we run with the nashorn.policy that the build creates |
312 run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy |
329 run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy |
313 |
330 |
314 # VM options for script tests with @fork option |
331 # VM options for script tests with @fork option |