hotspot/src/share/vm/oops/method.cpp
changeset 13738 d67be49a5beb
parent 13728 882756847a04
child 13882 80d5d0d21b75
equal deleted inserted replaced
13737:aa8c9eb6d900 13738:d67be49a5beb
   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.