hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPASYNC-78) AbstractMultiworkerIOReactor.DefaultThreadFactory.COUNT incorrect use of volatile
Date Sun, 29 Jun 2014 12:08:25 GMT

     [ https://issues.apache.org/jira/browse/HTTPASYNC-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPASYNC-78.
----------------------------------------

    Resolution: Fixed

Fixed in HttpCore trunk and 4.3.x branch.

Oleg

> AbstractMultiworkerIOReactor.DefaultThreadFactory.COUNT incorrect use of volatile
> ---------------------------------------------------------------------------------
>
>                 Key: HTTPASYNC-78
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-78
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>
> AbstractMultiworkerIOReactor.DefaultThreadFactory.COUNT is a volatile int which is incremented
using ++COUNT.
> This is not thread-safe; multiple threads can end up with the same value for COUNT.
> Should probably use AtomicInt instead



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message