[jbossts-issues] [JBoss JIRA] (JBTM-2867) Investigate un-_workList protected access to _work object

Ondra Chaloupka (JIRA) issues at jboss.org
Wed Apr 11 08:04:00 EDT 2018


     [ https://issues.jboss.org/browse/JBTM-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondra Chaloupka updated JBTM-2867:
----------------------------------
    Fix Version/s: 5.next
                       (was: 5.8.1.Final)


> Investigate un-_workList protected access to _work object
> ---------------------------------------------------------
>
>                 Key: JBTM-2867
>                 URL: https://issues.jboss.org/browse/JBTM-2867
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>            Reporter: Tom Jenkinson
>            Assignee: Tom Jenkinson
>             Fix For: 5.next
>
>
> During investigation of JBTM-2865 it was detected that the _work object can be accessed outside of the _workList synchronized block. Notably this seems to be a .remove() operation on it which can mutate the struct and may cause issues.
> For example, this looks wrong:
> https://github.com/tomjenkinson/narayana/blob/adda493b7bbd030eb405e3ef20978dc5d30ac5c2/ArjunaCore/arjuna/classes/com/arjuna/ats/internal/arjuna/objectstore/CacheStore.java#L703
> If
> https://github.com/tomjenkinson/narayana/blob/adda493b7bbd030eb405e3ef20978dc5d30ac5c2/ArjunaCore/arjuna/classes/com/arjuna/ats/internal/arjuna/objectstore/CacheStore.java#L187



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbossts-issues mailing list