8086068: VM crashes with "-Xint -XX:+UseCompiler" options

Prevent incompatible compiler flag combination.

Reviewed-by: zmajo, kvn, ddmitriev
This commit is contained in:
Tobias Hartmann 2016-04-21 10:52:00 +02:00
parent 04dd07454a
commit 257c8ccafc
3 changed files with 45 additions and 1 deletions

View file

@ -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;
}