comparison src/share/vm/oops/cpCache.cpp @ 12946:b8860472c377

8014910: deadlock between JVM/TI ClassPrepare event handler and CompilerThread Summary: Revert changes in JDK-8008962 Reviewed-by: coleenp, sspitsyn
author iklam
date Tue, 22 Oct 2013 14:29:02 -0700
parents 190899198332
children 41cb10cbfb3c
comparison
equal deleted inserted replaced
12944:1327b7f85503 12946:b8860472c377
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();