Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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.