equal
deleted
inserted
replaced
374 // Build a MethodData* object to hold information about this method |
374 // Build a MethodData* object to hold information about this method |
375 // collected in the interpreter. |
375 // collected in the interpreter. |
376 void Method::build_interpreter_method_data(methodHandle method, TRAPS) { |
376 void Method::build_interpreter_method_data(methodHandle method, TRAPS) { |
377 // Do not profile method if current thread holds the pending list lock, |
377 // Do not profile method if current thread holds the pending list lock, |
378 // which avoids deadlock for acquiring the MethodData_lock. |
378 // which avoids deadlock for acquiring the MethodData_lock. |
379 if (instanceRefKlass::owns_pending_list_lock((JavaThread*)THREAD)) { |
379 if (InstanceRefKlass::owns_pending_list_lock((JavaThread*)THREAD)) { |
380 return; |
380 return; |
381 } |
381 } |
382 |
382 |
383 // Grab a lock here to prevent multiple |
383 // Grab a lock here to prevent multiple |
384 // MethodData*s from being created. |
384 // MethodData*s from being created. |