hotspot/src/share/vm/runtime/arguments.cpp
changeset 36807 539a2817f0b4
parent 36594 5a2cfca38c3d
child 36812 4f96f15e4a46
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Thu Mar 17 16:10:58 2016 -1000
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Thu Mar 17 09:50:00 2016 +0300
@@ -2484,6 +2484,13 @@
     warning("Reserved Stack Area not supported on this platform");
   }
 #endif
+
+  if (BackgroundCompilation && (CompileTheWorld || ReplayCompiles)) {
+    if (!FLAG_IS_DEFAULT(BackgroundCompilation)) {
+      warning("BackgroundCompilation disabled due to CompileTheWorld or ReplayCompiles options.");
+    }
+    FLAG_SET_CMDLINE(bool, BackgroundCompilation, false);
+  }
   return status;
 }