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

Native Unix code should use readdir rather than readdir_r

    Details

    • Resolved In Build:
      b03
    • Verification:
      Not verified

      Description

      As discussed in JDK-8202353, readdir_r is problematic and is being deprecated by various platforms. This is causing build failures on Linux when using recent versions of glibc. The replacement is readdir; the thread-safety issues with readdir are not a problem for most uses, including those in the JDK.

      The uses of readdir_r in java.base/unix/native should be changed to use readdir instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bpb Brian Burkhalter
                Reporter:
                kbarrett Kim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: