Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the documentation for -XX:+MergeCompilerOptions #1392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/xxmergecompileroptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ This option enables or disables the merging of multiple `-Xjit` or `-Xaot` optio

If both `-Xjit` and `-Xaot` options exist and you use the `-XX:+MergeCompilerOptions` option, then multiple `-Xjit` options are merged into a single `-Xjit` option and multiple `-Xaot` options are merged into a single `-Xaot` option.

By default, `-Xnojit`, `-Xnoaot`, and `-Xint` overrides any `-Xjit` and `-Xaot` option before them (`Xint` overrides both, while `-Xnojit` overrides `-Xjit` and `-Xnoaot` overrides `-Xaot`). However, the `-XX:+MergeCompilerOptions` option will merge all `-Xjit` and `-Xaot` options regardless of the existence of those options, as long as at least one of them appears after those options.

## Examples

### One `-Xjit` option
Expand Down Expand Up @@ -92,6 +94,23 @@ java -XX:-MergeCompilerOptions -XX:+MergeCompilerOptions -Xshareclasses:none '-X
```
`-Xjit` options that are applied - `{compilePerformance}`,`vlog=vlog`,`version`

### Used alongside `-Xnojit`, `-Xnoaot`, or `-Xint`

```
java -Xshareclasses:none -Xjit:version -Xnojit -version
```
No `-Xjit` option is applied

```
java -XX:+MergeCompilerOptions -Xshareclasses:none -Xjit:verbose={compilePerformance} -Xjit:vlog=vlog -Xint -Xjit:version -version
```
`-Xjit` options that are applied - `verbose={compilePerformance}`,`vlog=vlog`,`version`

```
java -XX:+MergeCompilerOptions -Xshareclasses:none -Xjit:version -Xnojit -version
```
No `-Xjit` option is applied

## See also

- [-Xjit](xjit.md)
Expand Down