hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 25344 c9c8045983ec
parent 25343 d1dcc8376d83
parent 25339 ca74d9691341
child 25365 6db782823853
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Mon Jun 23 08:40:31 2014 +0200
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Mon Jun 23 04:44:02 2014 +0000
@@ -638,8 +638,11 @@
   while (next != NULL) {
     CompileTask* current = next;
     next = current->next();
-    // Wake up thread that blocks on the compile task.
-    current->lock()->notify();
+    {
+      // Wake up thread that blocks on the compile task.
+      MutexLocker ct_lock(current->lock());
+      current->lock()->notify();
+    }
     // Put the task back on the freelist.
     CompileTask::free(current);
   }