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

Incorrect += or -= optimization for int greater than 4096

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.1.6
    • 1.2.0
    • vm-legacy
    • jit
    • 1.1.6
    • sparc
    • solaris_2.5.1
    • Not verified



        Name: joT67522 Date: 01/21/98


        When the JIT is enabled on Solaris 2.5.1 with versions of Java (from 1.1.2 to 1.2beta2),
        the += or -= operations on integers greater than 4096 gives incorrect results.

        public class CheckJIT {
            pubic static void main(String[] args) {
                int x = 0;
                System.out.println("x --> " + x);

                x += 4098;
                System.out.println("x --> " + x);

                x = 0;
                x -= 4098;
                System.out.println("x --> " + x);
            }
        }
        (Review ID: 23709)
        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: