hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 26799 0c349e16bbe8
parent 26796 666464578742
child 26800 ed8ab32a293d
equal deleted inserted replaced
26797:b89b8ffec1f0 26799:0c349e16bbe8
  1202   // the pending list lock or a 3-way deadlock may occur
  1202   // the pending list lock or a 3-way deadlock may occur
  1203   // between the reference handler thread, a GC (instigated
  1203   // between the reference handler thread, a GC (instigated
  1204   // by a compiler thread), and compiled method registration.
  1204   // by a compiler thread), and compiled method registration.
  1205   if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) {
  1205   if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) {
  1206     return;
  1206     return;
       
  1207   }
       
  1208 
       
  1209   if (TieredCompilation) {
       
  1210     // Tiered policy requires MethodCounters to exist before adding a method to
       
  1211     // the queue. Create if we don't have them yet.
       
  1212     method->get_method_counters(thread);
  1207   }
  1213   }
  1208 
  1214 
  1209   // Outputs from the following MutexLocker block:
  1215   // Outputs from the following MutexLocker block:
  1210   CompileTask* task     = NULL;
  1216   CompileTask* task     = NULL;
  1211   bool         blocking = false;
  1217   bool         blocking = false;