equal
deleted
inserted
replaced
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; |