diff src/share/vm/opto/c2_globals.hpp @ 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 8c57262447d3
children ee138854b3a6
line wrap: on
line diff
--- a/src/share/vm/opto/c2_globals.hpp	Sat Jan 07 10:39:23 2012 -0800
+++ b/src/share/vm/opto/c2_globals.hpp	Sat Jan 07 13:26:43 2012 -0800
@@ -426,6 +426,9 @@
   product(bool, EliminateLocks, true,                                       \
           "Coarsen locks when possible")                                    \
                                                                             \
+  product(bool, EliminateNestedLocks, true,                                 \
+          "Eliminate nested locks of the same object when possible")        \
+                                                                            \
   notproduct(bool, PrintLockStatistics, false,                              \
           "Print precise statistics on the dynamic lock usage")             \
                                                                             \