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

remove unnecessary synchronization for LinkedList<TCPEndpoint> in localEndpoints in TCPEndpoint

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Withdrawn
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      in TCPEndpoint, there are 2 levels of synchronizations when accessing TCPEndpoint.localEndpoints:
      1. TCPEndpoint.localEndpoints itself; 2. a specific entry (epList) of TCPEndpoint.localEndpoints.

      2nd sync is not necessary, as all the accesses to a specific entry (epList) of TCPEndpoint.localEndpoints are already protected by 1st sync exclusively.

      And, not find escape of a specific entry (epList) of TCPEndpoint.localEndpoints.

        Attachments

          Activity

            People

            • Assignee:
              mli Hamlin Li
              Reporter:
              mli Hamlin Li
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: