hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 26799 0c349e16bbe8
parent 26796 666464578742
child 26800 ed8ab32a293d
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Wed Sep 17 06:05:41 2014 +0000
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Wed Sep 17 21:15:03 2014 -0700
@@ -1206,6 +1206,12 @@
     return;
   }
 
+  if (TieredCompilation) {
+    // Tiered policy requires MethodCounters to exist before adding a method to
+    // the queue. Create if we don't have them yet.
+    method->get_method_counters(thread);
+  }
+
   // Outputs from the following MutexLocker block:
   CompileTask* task     = NULL;
   bool         blocking = false;