You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Arturo Bernal (Jira)" <ji...@apache.org> on 2023/08/11 17:08:00 UTC
[jira] [Created] (HTTPCLIENT-2290) Refactoring of synchronized sections to use lock primitives in light of virtual threads
Arturo Bernal created HTTPCLIENT-2290:
-----------------------------------------
Summary: Refactoring of synchronized sections to use lock primitives in light of virtual threads
Key: HTTPCLIENT-2290
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2290
Project: HttpComponents HttpClient
Issue Type: Improvement
Reporter: Arturo Bernal
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{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org