Mercurial > hg > truffle
changeset 18578:f262c6c5fb7a
invocation cache hit counter should be incremented, not decremented
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 30 Nov 2014 21:09:07 +0100 |
parents | c296b906b9eb |
children | 77b55091cca1 |
files | graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/remote/Handler.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;