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

Re-examine synchronization usages in http and https protocol handlers

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      The http and https protocol handlers do blocking I/O operations while holding monitors. For the short term, this is problematic for light weight threads (a.k.a. fibers) as parking while holding a monitor will pin the underlying carrier thread.

      This issue tracks exploring if the locking in HttpClient, HttpURLConnection, HttpsClient, and HttpsURLConnection can be re-examined to use j.u.c. locks around blocking I/O operations.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: