8171137: Avoid warning: -Xint is not compatible with AOT (switching AOT off)
Summary: Put all AOT warnings under PrintAOT flag.
Reviewed-by: iveresov, dholmes
--- a/hotspot/src/share/vm/aot/aotLoader.cpp Mon Dec 12 20:48:50 2016 -0800
+++ b/hotspot/src/share/vm/aot/aotLoader.cpp Mon Dec 12 21:56:45 2016 -0800
@@ -125,14 +125,18 @@
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;
}