hotspot/src/share/vm/runtime/deoptimization.cpp
changeset 11445 3c768dca60f5
parent 10979 c25dd872c62f
child 11636 3c07b54482a5
--- a/hotspot/src/share/vm/runtime/deoptimization.cpp	Sat Jan 07 10:39:23 2012 -0800
+++ b/hotspot/src/share/vm/runtime/deoptimization.cpp	Sat Jan 07 13:26:43 2012 -0800
@@ -211,7 +211,7 @@
 #ifdef COMPILER2
   // Reallocate the non-escaping objects and restore their fields. Then
   // relock objects if synchronization on them was eliminated.
-  if (DoEscapeAnalysis) {
+  if (DoEscapeAnalysis || EliminateNestedLocks) {
     if (EliminateAllocations) {
       assert (chunk->at(0)->scope() != NULL,"expect only compiled java frames");
       GrowableArray<ScopeValue*>* objects = chunk->at(0)->scope()->objects();