comparison src/share/vm/oops/cpCache.cpp @ 5645:fce21ac5968d

8027229: ICCE expected for >=2 maximally specific default methods. Summary: Need to process defaults for interfaces for invokespecial Reviewed-by: lfoltan, hseigel, coleenp, jrose
author acorn
date Wed, 13 Nov 2013 07:31:26 -0800
parents 190899198332
children 41cb10cbfb3c
comparison
equal deleted inserted replaced
15:ff0e9d7e8e9a 16:d4470fbb6e5a
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();