You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2021/04/11 14:36:00 UTC
[jira] [Closed] (HTTPCLIENT-2148) fluent Executor volatile access
allows NPEs
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carter Kozak closed HTTPCLIENT-2148.
------------------------------------
> fluent Executor volatile access allows NPEs
> -------------------------------------------
>
> Key: HTTPCLIENT-2148
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2148
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Fluent HC
> Reporter: Carter Kozak
> Assignee: Carter Kozak
> Priority: Major
> Fix For: 5.0.4, 5.1-beta2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The {{org.apache.hc.client5.http.fluent.Executor}} class checks volatile fields for null before loading them a second time for execution. If the field is updated to null at runtime, this can result in a NPE.
> Even when this doesn't result in failures, it's better for performance if we can use a single volatile load rather than two.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org