Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4029025

jit fails with javac -O compiled file on Solaris Intel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1
    • 1.0.2
    • 1.1
    • vm-legacy
    • None
    • jit
    • 1.0.2
    • x86
    • solaris_2.5.1
    • Not verified

    Backports

      Description

        This fails when compiled with javac -O, passes otherwise, on intel only:

        public class x {
           final double abs(double d) {
              if (d >= 0.0)
                 return d;
              else
                 return -d;
           }
           public static void main(String argv[]) {
               int i,j;
               double d1[] = new double[200];
               double d2[] = new double[200];
               x thing = new x();

               d1[3] = -3;
               d2[3] = thing.abs(d1[3]);

               System.out.println("Made it");

           }
        }

        Attachments

          Issue Links

            Activity

              People

                tcramersunw Timothy Cramer (Inactive)
                tcramersunw Timothy Cramer (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: