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

Update java.net Socket and DatagramSocket implementations to use Cleaner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      The java.net.AbstractPlainDatagramSocketImpl and AbstractPlainSocketImpl have finalize methods that call close() to free FileDescriptors when the objects are no longer referenced. The cleanup behavior is not specified and can be reimplemented to use the Cleaner to more efficiently free FileDescriptors.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: