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

Use socklen_t instead of int and jint

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8u192, 12
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Quite a lot of code in the libraries and a bit in Hotspot use 'int' or 'jint' as a synonym for socklen_t. socklen_t is an unsigned value on Unixen, and Hotspot typedef's it to int on Windows in JDK8 and #include's winsock2.h in tip. It would be nice to clean up the whole thing. I've attached Hotspot and library diffs for JDK8 and marked this as core-libs, even though there's a bit of Hotspot in JDK8.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              phh Paul Hohensee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: