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

jit fails with javac -O compiled file on Solaris Intel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.0.2
    • Component/s: vm-legacy
    • Labels:
      None
    • Subcomponent:
      jit
    • Resolved In Build:
      1.0.2
    • CPU:
      x86
    • OS:
      solaris_2.5.1
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: