diff -r b89b8ffec1f0 -r 0c349e16bbe8 hotspot/src/share/vm/compiler/compileBroker.cpp --- 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;