7121111: -server -Xcomp -XX:+TieredCompilation does not invoke C2 compiler
authoriveresov
Tue, 13 Dec 2011 17:10:52 -0800
changeset 11426 7dd181af6a26
parent 11425 fd1547049bec
child 11427 bf248009cbbe
7121111: -server -Xcomp -XX:+TieredCompilation does not invoke C2 compiler Summary: Exercise C2 more in tiered mode with Xcomp Reviewed-by: kvn, never
hotspot/src/share/vm/runtime/arguments.cpp
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Tue Dec 13 10:54:47 2011 +0100
+++ b/hotspot/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;
   }
 }