Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPCLIENT-2290 - Refactor HttpClient synchronized sections for virtual threads #476

Merged
merged 1 commit into from
Aug 27, 2023

Commits on Aug 21, 2023

  1. Refactor HttpClient synchronized sections for virtual threads

    - Replaced `synchronized` blocks with `ReentrantLock` in `LeaseRequest` to better support virtual threads introduced in JDK 21.
    - Ensured each `LeaseRequest` instance has its own unique lock for maintaining original synchronization semantics.
    - Addressed potential performance and deadlock issues with virtual threads by using explicit lock primitives from `java.util.concurrent.locks`.
    arturobernalg committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    ca7fb83 View commit details
    Browse the repository at this point in the history