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

The Object#wait( long timeout) resumes without waiting time out in 1.3.X

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      10
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      The licnesee found the strange behavior in 1.3.1_07.
      The Object#wait( long timeout) resumes without waiting time-out.

      This issue is sensitive to environment, I will mention the configration
      before reproducing process.

      CONFIGRATION:
       - OS : Solaris 8 ( patch rev(libthread) is 108827-14 or older)
       - JRE: 1.3.1_07
       Note:
         to use /usr/lib/lwp

      REPRODUCE:
       1) Compile the attached a.java in 1.3.1_07
       2) Invoke "env LD_LIBRARY_PATH=/usr/lib/lwp java a 3"
          Otherwise,
            % setenv LD_LIBRARY_PATH /usr/lib/lwp
            % java a 3
            
            
      EXPECTED BEHAVIOR:

       Runtime.exec 0
       Process.waitFor 0
       Process.destroy 0
       Runtime.exec 1
       Process.waitFor 1
       Process.destroy 1
       Runtime.exec 2
       Process.waitFor 2
       Process.destroy 2
       
      ACTUAL BEHAVIOR :

       Waited: 27
       Runtime.exec 0
       Process.waitFor 0
       Process.destroy 0
       Waited: 36
       Runtime.exec 1
       Process.waitFor 1
       Process.destroy 1
       Waited: 39
       Runtime.exec 2
       Process.waitFor 2
       Process.destroy 2
       


      NOTE:
       This issue does not occur in 1.4.X.
       Details, please see the commnet section.

      ==============================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              collins Gary Collins (Inactive)
              Reporter:
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: