Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2290

Refactoring of synchronized sections to use lock primitives in light of virtual threads

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.4-alpha1
    • None
    • None

    Description

      With the upcoming inclusion of virtual threads in JDK 21, we need to review and refactor sections of the HttpClient codebase that use the synchronized keyword.

      As virtual threads might introduce performance and deadlock issues with the current synchronized sections, we'll move towards using explicit lock primitives provided by the java.util.concurrent.locks package, such as ReentrantLock.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abernal Arturo Bernal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m