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

Server compiler does not check the loop exit condition correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_7

      Description

      This might be the same to 4629512.
      The above bug seems to happen both on Solaris and windows.
      But the attached sample is only on Solaris.

      1. Reproduce
        1) Compile the attached java program
        2) Invoke
              java -server ReadTest
          
           ==> You will see the following message as follows..

      +++++++++++++++++++++++++++++
       value = 34567890AB
       value's length = 10
       value's i = 10
       max = 0
       numBytesToCopy = 2
       BYTE_SIZE = 1
       offset = 8
      +++++++++++++++++++++++++++++

          The above message is output on ArrayIndexOutOfBoundsException.


      2. Configration

      goedel[5]% uname -a
      SunOS goedel 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-60
      goedel[6]% psrinfo -v
      Status of processor 0 as of: 09/24/02 22:35:42
        Processor has been on-line since 09/11/02 16:32:40.
        The sparcv9 processor operates at 296 MHz,
              and has a sparcv9 floating point processor.
      goedel[7]% prtconf
      System Configuration: Sun Microsystems sun4u
      Memory size: 256 Megabytes
      System Peripherals (Software Nodes):

      ...........
          pci, instance #1
          counter-timer (driver not attached)
          SUNW,UltraSPARC-II (driver not attached)
          SUNW,ffb, instance #0
          pseudo, instance #0
      goedel[8]% java -version
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
      tbaba@goedel[9]%



      3. Note

        - This does not happen on 1.3.1_0X and 1.4.0_0X even with -server.
        - This does not happen with -Xint and with -client(default) in 1.4.1.

      2002-09-24
      ==========================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cclicksunw Clifford Click (Inactive)
                Reporter:
                tbaba Tadayuki Baba (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: