# HG changeset patch # User Stefan Anzinger # Date 1406347031 25200 # Node ID e87d16c605d2f836a12e179ff650c348b3e2e555 # Parent 0a9ed7b4f8fdbce053ee701cf9b5ccebae9a675f [SPARC] Small typo in monitorSnippets diff -r 0a9ed7b4f8fd -r e87d16c605d2 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java Fri Jul 25 20:55:56 2014 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java Fri Jul 25 20:57:11 2014 -0700 @@ -253,8 +253,8 @@ // assuming both the stack pointer and page_size have their least // significant 2 bits cleared and page_size is a power of 2 final Word alignedMask = Word.unsigned(wordSize() - 1); - final Word stackPointer = registerAsWord(stackPointerRegister); - if (probability(VERY_SLOW_PATH_PROBABILITY, currentMark.subtract(stackPointer.add(config().stackBias)).and(alignedMask.subtract(pageSize())).notEqual(0))) { + final Word stackPointer = registerAsWord(stackPointerRegister).add(config().stackBias); + if (probability(VERY_SLOW_PATH_PROBABILITY, currentMark.subtract(stackPointer).and(alignedMask.subtract(pageSize())).notEqual(0))) { // Most likely not a recursive lock, go into a slow runtime call traceObject(trace, "+lock{stub:failed-cas}", object, true); monitorenterStubC(MONITORENTER, object, lock);