# HG changeset patch # User Doug Simon # Date 1417378147 -3600 # Node ID f262c6c5fb7a8cb1477f082f9781cbd6617eb90a # Parent c296b906b9ebe66155a86b944ed112941a7a0668 invocation cache hit counter should be incremented, not decremented diff -r c296b906b9eb -r f262c6c5fb7a graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/remote/Handler.java --- a/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/remote/Handler.java Sun Nov 30 08:35:28 2014 +0000 +++ b/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/remote/Handler.java Sun Nov 30 21:09:07 2014 +0100 @@ -101,7 +101,7 @@ Object result = invocation.invoke(); result = context.get(result); if (isCacheable) { - context.invocationCacheHits--; + context.invocationCacheHits++; cachedInvocations.put(invocation, result == null ? NULL_RESULT : result); } return result;