[jboss-jira] [JBoss JIRA] Resolved: (JBAS-4382) EnterpriseContext lock counting is not synchronized
Jeff Zhang (JIRA)
jira-events at lists.jboss.org
Mon Aug 11 04:16:50 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAS-4382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Zhang resolved JBAS-4382.
------------------------------
Resolution: Done
> EnterpriseContext lock counting is not synchronized
> ---------------------------------------------------
>
> Key: JBAS-4382
> URL: https://jira.jboss.org/jira/browse/JBAS-4382
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: EJB2
> Reporter: Adrian Brock
> Assignee: Jeff Zhang
> Fix For: JBossAS-4.2.4.GA
>
> Attachments: 4382_trunk.patch
>
>
> The lock counting in org.jboss.ejb.EnterpriseContext is not synchronized.
> The lock ivar is not even volatile.
> This variable needs replacing with synchronized method blocks or an oswego concurrent SynchronizedInt.
> This bug could either cause passivation to be invoked when it shouldn't or vice versa.
> Additionally, even with this fix, the usage in StatefulSessionInstanceInterceptor needs replacing with something more atomic!
> if (!ctx.isLocked())
> {
>
> //take it!
> ctx.lock();
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list