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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 1.1.6
    • Affects Version/s: 1.2.0
    • Component/s: 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)
        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: