hotspot/src/share/vm/oops/cpCache.cpp
changeset 21079 7028d0cb9b49
parent 20282 7f9cbdf89af2
child 21557 55115e0708f1
equal deleted inserted replaced
21077:85a46889c631 21079:7028d0cb9b49
   282   // Competing writers must acquire exclusive access via a lock.
   282   // Competing writers must acquire exclusive access via a lock.
   283   // A losing writer waits on the lock until the winner writes f1 and leaves
   283   // A losing writer waits on the lock until the winner writes f1 and leaves
   284   // the lock, so that when the losing writer returns, he can use the linked
   284   // the lock, so that when the losing writer returns, he can use the linked
   285   // cache entry.
   285   // cache entry.
   286 
   286 
   287   oop cplock = cpool->lock();
   287   MonitorLockerEx ml(cpool->lock());
   288   ObjectLocker ol(cplock, Thread::current(), cplock != NULL);
       
   289   if (!is_f1_null()) {
   288   if (!is_f1_null()) {
   290     return;
   289     return;
   291   }
   290   }
   292 
   291 
   293   const methodHandle adapter = call_info.resolved_method();
   292   const methodHandle adapter = call_info.resolved_method();