mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-02 04:00:16 +00:00
8171137: Avoid warning: -Xint is not compatible with AOT (switching AOT off)
Put all AOT warnings under PrintAOT flag. Reviewed-by: iveresov, dholmes
This commit is contained in:
parent
001c67f1fb
commit
c2b261c9f5
@ -125,14 +125,18 @@ void AOTLoader::initialize() {
|
||||
if (UseAOT) {
|
||||
// EagerInitialization is not compatible with AOT
|
||||
if (EagerInitialization) {
|
||||
warning("EagerInitialization is not compatible with AOT (switching AOT off)");
|
||||
if (PrintAOT) {
|
||||
warning("EagerInitialization is not compatible with AOT (switching AOT off)");
|
||||
}
|
||||
FLAG_SET_DEFAULT(UseAOT, false);
|
||||
return;
|
||||
}
|
||||
|
||||
// -Xint is not compatible with AOT
|
||||
if (Arguments::is_interpreter_only()) {
|
||||
warning("-Xint is not compatible with AOT (switching AOT off)");
|
||||
if (PrintAOT) {
|
||||
warning("-Xint is not compatible with AOT (switching AOT off)");
|
||||
}
|
||||
FLAG_SET_DEFAULT(UseAOT, false);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user