changeset 5345:00803ae428d2

fixed bug in use of CheckcastMinHintHitProbability
author Doug Simon <doug.simon@oracle.com>
date Wed, 02 May 2012 18:23:12 +0200
parents f47c770756e6
children 4c3d953f8131 de571c017f61
files graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;