# HG changeset patch # User Doug Simon # Date 1421948764 -3600 # Node ID 6338dfaf6a443ae476fe4866994ec8fa0ddb12d6 # Parent 837d2b18a17165e441272262ac4454231f4910cf fixed branch probability in instanceof snippet diff -r 837d2b18a171 -r 6338dfaf6a44 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/InstanceOfSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/InstanceOfSnippets.java Thu Jan 22 16:25:04 2015 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/InstanceOfSnippets.java Thu Jan 22 18:46:04 2015 +0100 @@ -98,7 +98,7 @@ for (int i = 0; i < hints.length; i++) { KlassPointer hintHub = hints[i]; boolean positive = hintIsPositive[i]; - if (probability(NOT_FREQUENT_PROBABILITY, hintHub.equal(objectHub))) { + if (probability(LIKELY_PROBABILITY, hintHub.equal(objectHub))) { hintsHit.inc(); return positive ? trueValue : falseValue; }