# HG changeset patch # User Doug Simon # Date 1335975792 -7200 # Node ID 00803ae428d2c9754b164eb3c578c4578d59edfd # Parent f47c770756e675aff6cd1400b5f0161dcdfae0a7 fixed bug in use of CheckcastMinHintHitProbability diff -r f47c770756e6 -r 00803ae428d2 graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java --- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java Wed May 02 18:04:36 2012 +0200 +++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java Wed May 02 18:23:12 2012 +0200 @@ -604,7 +604,7 @@ if (typeProfile != null) { double notRecordedTypes = typeProfile.getNotRecordedProbability(); ProfiledType[] ptypes = typeProfile.getTypes(); - if (notRecordedTypes < GraalOptions.CheckcastMinHintHitProbability && ptypes != null && ptypes.length > 0) { + if (notRecordedTypes < (1D - GraalOptions.CheckcastMinHintHitProbability) && ptypes != null && ptypes.length > 0) { RiResolvedType[] hints = new RiResolvedType[ptypes.length]; int hintCount = 0; double totalHintProbability = 0.0d;