Skip to main content

Enabling Escape Analysis

2 replies [Last post]
jansan
Offline
Joined: 2005-02-24
Points: 0

I found in the PDF to the JavaONE session "New Compiler Optimizations in the Java HotSpotâ„¢ Virtual Machine" (TS-3412) that Escape Analysis is included in the Mustang server VM and can be enabled using the -XX:+UseEscapeAnalysis flag. Out of curiosity I tried to launch my app with the command

java -server -XX:+UseEscapeAnalysis com.domain.App

but received the error message

"Could not create the Java virtual machine. Unrecognized VM option '+UseEscapeAnalysis'".

Will I have to wait for a new build or am I doing something wrong?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexlamsl
Offline
Joined: 2004-09-02
Points: 0

Google suggests "-XX:+DoEscapeAnalysis"

jansan
Offline
Joined: 2005-02-24
Points: 0

Thanks, I just found the same. This seems to be a typo in the PDF.