changeset 13036:a57e11acea79

8171137: Avoid warning: -Xint is not compatible with AOT (switching AOT off) Summary: Put all AOT warnings under PrintAOT flag. Reviewed-by: iveresov, dholmes
author kvn
date Mon, 12 Dec 2016 21:56:45 -0800
parents 6f597eedae0b
children 29af25ec78bb 548cb3b7b713
files src/share/vm/aot/aotLoader.cpp
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/aot/aotLoader.cpp	Mon Dec 12 20:48:50 2016 -0800
+++ b/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;
     }