changeset 3182:d725f0affb1a

7121111: -server -Xcomp -XX:+TieredCompilation does not invoke C2 compiler Summary: Exercise C2 more in tiered mode with Xcomp Reviewed-by: kvn, never
author iveresov
date Tue, 13 Dec 2011 17:10:52 -0800
parents 7bca37d28f32
children 127b3692c168
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Tue Dec 13 10:54:47 2011 +0100
+++ b/src/share/vm/runtime/arguments.cpp	Tue Dec 13 17:10:52 2011 -0800
@@ -1000,6 +1000,13 @@
     UseInterpreter           = false;
     BackgroundCompilation    = false;
     ClipInlining             = false;
+    // Be much more aggressive in tiered mode with -Xcomp and exercise C2 more.
+    // We will first compile a level 3 version (C1 with full profiling), then do one invocation of it and
+    // compile a level 4 (C2) and then continue executing it.
+    if (TieredCompilation) {
+      Tier3InvokeNotifyFreqLog = 0;
+      Tier4InvocationThreshold = 0;
+    }
     break;
   }
 }