8171137: Avoid warning: -Xint is not compatible with AOT (switching AOT off)
authorkvn
Mon, 12 Dec 2016 21:56:45 -0800
changeset 42658 9b8b24e4fc01
parent 42657 9e1850986b28
child 42659 b264f522c689
child 42905 1af223983f82
8171137: Avoid warning: -Xint is not compatible with AOT (switching AOT off) Summary: Put all AOT warnings under PrintAOT flag. Reviewed-by: iveresov, dholmes
hotspot/src/share/vm/aot/aotLoader.cpp
--- 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;
     }