mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8014910: deadlock between JVM/TI ClassPrepare event handler and CompilerThread
Revert changes in JDK-8008962 Reviewed-by: coleenp, sspitsyn
This commit is contained in:
parent
9fca48316e
commit
0e4eda601c
7 changed files with 42 additions and 53 deletions
|
@ -284,8 +284,7 @@ void ConstantPoolCacheEntry::set_method_handle_common(constantPoolHandle cpool,
|
|||
// the lock, so that when the losing writer returns, he can use the linked
|
||||
// cache entry.
|
||||
|
||||
oop cplock = cpool->lock();
|
||||
ObjectLocker ol(cplock, Thread::current(), cplock != NULL);
|
||||
MonitorLockerEx ml(cpool->lock());
|
||||
if (!is_f1_null()) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue