# HG changeset patch # User Doug Simon # Date 1395787977 -3600 # Node ID 7b3ee54233ea54091c98515ebf625cdfb2b20b8a # Parent 0b6ec715a2910c10f31576307e2cec4814e0f689 fixed findbugs issue diff -r 0b6ec715a291 -r 7b3ee54233ea graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java Tue Mar 25 22:38:07 2014 +0100 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java Tue Mar 25 23:52:57 2014 +0100 @@ -530,6 +530,8 @@ return null; } + private static final Object LOG_OUTPUT_LOCK = new Object(); + /** * Try to find a sequence of Nodes which can be passed to the backend to look for optimized * instruction sequences using memory. Currently this basically is a read with a single @@ -572,7 +574,7 @@ } } if (Debug.isLogEnabled()) { - synchronized ("lock") { // Hack to ensure the output is grouped. + synchronized (LOG_OUTPUT_LOCK) { // Hack to ensure the output is grouped. try (Indent indent = Debug.logAndIndent("checking operations")) { int start = nodes.indexOf(access); int end = nodes.indexOf(operation);