[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17318803#comment-17318803
 ] 

ASF subversion and git services commented on HTTPCLIENT-2148:
-------------------------------------------------------------

Commit fce5978dbfe2d075c182f463b6ca0e63839633a1 in httpcomponents-client's 
branch refs/heads/5.0.x from Carter Kozak
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=fce5978 ]

HTTPCLIENT-2148: fluent Executor volatile access thread safety (#301)



> 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
>          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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to