7125896: Eliminate nested locks

Nested locks elimination done before lock nodes expansion by looking for outer locks of the same object.

Reviewed-by: never, twisti
This commit is contained in:
Vladimir Kozlov 2012-01-07 13:26:43 -08:00
parent f99fb50071
commit 94927c382b
17 changed files with 366 additions and 145 deletions

View file

@ -3160,6 +3160,9 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
if (!UseBiasedLocking || EmitSync != 0) {
UseOptoBiasInlining = false;
}
if (!EliminateLocks) {
EliminateNestedLocks = false;
}
#endif
if (PrintAssembly && FLAG_IS_DEFAULT(DebugNonSafepoints)) {