diff 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
line wrap: on
line diff
--- a/src/share/vm/oops/cpCache.cpp	Mon Oct 21 17:26:46 2013 -0700
+++ b/src/share/vm/oops/cpCache.cpp	Tue Oct 22 14:29:02 2013 -0700
@@ -284,8 +284,7 @@
   // 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;
   }