[
https://issues.apache.org/jira/browse/ARTEMIS-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16571963#comment-16571963
]
ASF GitHub Bot commented on ARTEMIS-2015:
-----------------------------------------
GitHub user franz1981 opened a pull request:
https://github.com/apache/activemq-artemis/pull/2223
ARTEMIS-2015 PriorityLinkedListImpl::isEmpty is not thread-safe
PriorityLinkedListImpl::size access is changed to be safely
observable by a thread different from the one allowed to write
the list.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/franz1981/activemq-artemis ARTEMIS-2015
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/2223.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2223
----
commit 460a4d635f8bf1e6c333e4838b59ca1eeac739f5
Author: Francesco Nigro <nigro.fra@...>
Date: 2018-08-07T16:53:13Z
ARTEMIS-2015 PriorityLinkedListImpl::isEmpty is not thread-safe
PriorityLinkedListImpl::size access is changed to be safely
observable by a thread different from the one allowed to write
the list.
----
> PriorityLinkedListImpl::isEmpty is not thread-safe
> --------------------------------------------------
>
> Key: ARTEMIS-2015
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2015
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
> Priority: Minor
>
> PriorityLinkedListImpl::isEmpty depends on the size property that isn't
> updated in a way to have it concurrently visible to other threads.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)