Mercurial > hg > truffle
diff src/share/vm/runtime/deoptimization.cpp @ 4777:e9a5e0a812c8
7125896: Eliminate nested locks
Summary: Nested locks elimination done before lock nodes expansion by looking for outer locks of the same object.
Reviewed-by: never, twisti
author | kvn |
---|---|
date | Sat, 07 Jan 2012 13:26:43 -0800 |
parents | e342a5110bed |
children | aa3d708d67c4 |
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp Sat Jan 07 10:39:23 2012 -0800 +++ b/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();