mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8086068: VM crashes with "-Xint -XX:+UseCompiler" options
Prevent incompatible compiler flag combination. Reviewed-by: zmajo, kvn, ddmitriev
This commit is contained in:
parent
04dd07454a
commit
257c8ccafc
3 changed files with 45 additions and 1 deletions
|
@ -2620,6 +2620,12 @@ bool Arguments::check_vm_args_consistency() {
|
|||
}
|
||||
FLAG_SET_CMDLINE(bool, BackgroundCompilation, false);
|
||||
}
|
||||
if (UseCompiler && is_interpreter_only()) {
|
||||
if (!FLAG_IS_DEFAULT(UseCompiler)) {
|
||||
warning("UseCompiler disabled due to -Xint.");
|
||||
}
|
||||
FLAG_SET_CMDLINE(bool, UseCompiler, false);
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue