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/10/29 07:11:00 UTC
[jira] [Resolved] (HTTPCLIENT-2290) Refactoring of synchronized sections to use lock primitives in light of virtual threads
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arturo Bernal resolved HTTPCLIENT-2290.
---------------------------------------
Resolution: Fixed
> 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
> Priority: Minor
> Fix For: 5.4-alpha1
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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