changeset 42658:9b8b24e4fc01

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 9e1850986b28
children b264f522c689 1af223983f82
files hotspot/src/share/vm/aot/aotLoader.cpp
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }