hotspot/src/share/vm/runtime/arguments.cpp
changeset 21099 46e6bbecd9e5
parent 20723 929cc8568f8e
child 21106 37ad7041ff83
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Wed Oct 23 10:00:39 2013 +0200
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Wed Oct 23 12:40:23 2013 +0200
@@ -3721,6 +3721,14 @@
     // incremental inlining: bump MaxNodeLimit
     FLAG_SET_DEFAULT(MaxNodeLimit, (intx)75000);
   }
+  if (!UseTypeSpeculation && FLAG_IS_DEFAULT(TypeProfileLevel)) {
+    // nothing to use the profiling, turn if off
+    FLAG_SET_DEFAULT(TypeProfileLevel, 0);
+  }
+  if (UseTypeSpeculation && FLAG_IS_DEFAULT(ReplaceInParentMaps)) {
+    // Doing the replace in parent maps helps speculation
+    FLAG_SET_DEFAULT(ReplaceInParentMaps, true);
+  }
 #endif
 
   if (PrintAssembly && FLAG_IS_DEFAULT(DebugNonSafepoints)) {