[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-1304) OrderedSynchronizationHandler not thread safe
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Fri Mar 7 11:31:13 EST 2008
[ http://jira.jboss.com/jira/browse/JBCACHE-1304?page=comments#action_12401798 ]
Manik Surtani commented on JBCACHE-1304:
----------------------------------------
Resolved: OSH has no static variables anymore; instead it is instantiated when a TransactionEntry is created and the ref is stored in and obtained from the TransactionEntry, rather than the factory method on OSH.
> OrderedSynchronizationHandler not thread safe
> ---------------------------------------------
>
> Key: JBCACHE-1304
> URL: http://jira.jboss.com/jira/browse/JBCACHE-1304
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Transactions
> Affects Versions: 2.1.0.CR4, 2.1.0.CR3, 2.0.0.GA
> Reporter: Manik Surtani
> Assigned To: Manik Surtani
> Fix For: 2.1.0.GA
>
>
> OrderedSynchronizationHandler uses a static Map to hold instances referenced by a Transaction object, and the factory method on the OSH uses this map to retrieve instances.
> 1) This map is unguarded and hence not thread safe.
> 2) The map is static, which means it is shared across all cache instances in a given JVM. Not intended to work this way.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list