diff src/share/vm/oops/methodCounters.hpp @ 10640:88672775a26c

Compilation policy fixes and changed default compilation policy.
author Christian Haeubl <haeubl@ssw.jku.at>
date Mon, 08 Jul 2013 16:55:28 +0200
parents 836a62f43af9
children e7d07c9bb779
line wrap: on
line diff
--- a/src/share/vm/oops/methodCounters.hpp	Mon Jul 08 12:01:51 2013 +0200
+++ b/src/share/vm/oops/methodCounters.hpp	Mon Jul 08 16:55:28 2013 +0200
@@ -37,7 +37,7 @@
   InvocationCounter _invocation_counter;         // Incremented before each activation of the method - used to trigger frequency-based optimizations
   InvocationCounter _backedge_counter;           // Incremented before each backedge taken - used to trigger frequencey-based optimizations
 
-#ifdef GRAAL
+#ifdef GRAALVM
   jlong             _graal_invocation_time;
   int               _graal_priority;
 #endif
@@ -49,6 +49,11 @@
   MethodCounters() : _interpreter_invocation_count(0),
                      _interpreter_throwout_count(0),
                      _number_of_breakpoints(0)
+#ifdef GRAALVM
+                     , _graal_invocation_time(0L)
+                     , _graal_priority(0)
+#endif
+
 #ifdef TIERED
                    , _rate(0),
                      _prev_time(0)
@@ -97,7 +102,7 @@
   void decr_number_of_breakpoints()    { --_number_of_breakpoints; }
   void clear_number_of_breakpoints()   { _number_of_breakpoints = 0; }
 
-#ifdef GRAAL
+#ifdef GRAALVM
   void set_graal_invocation_time(jlong time) { _graal_invocation_time = time; }
   jlong graal_invocation_time()              { return _graal_invocation_time; }