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

java.io.InterruptedIOException in native thread and green thread are different

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description

      > I was looking into getting InterruptedIOException to get raised properly when
      > doing IO and have some issues with the C native methd sysReadFD(). Function
      > sysReadFD() is in files .../native_threads/io_md.c and
      > .../green_threads/io_md.c.
      >
      > From looking at the source code for sysReadFD() in .../green_threads/io_md.c,
      > it looks like sysReadFD() should return a function result of -2 if the thread
      > was interrupted when doing the read.
      >
      > However, when I looked at the places where sysReadFD() gets called (in module
      > src/share/java/lang/io.c), the status of -2 is never checked. So, how does
      > InterruptedIOException get raised when a thread is interrupted in the middle
      > of calling sysReadFD() ?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mmcclosksunw Michael Mccloskey (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: