You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Sorin Suciu (JIRA)" <qp...@incubator.apache.org> on 2010/06/09 14:17:12 UTC
[jira] Updated: (QPID-2653) Double checked locking in
org.apache.qpid.server.transport.ThreadPoolFilter
[ https://issues.apache.org/jira/browse/QPID-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sorin Suciu updated QPID-2653:
------------------------------
Attachment: 0001-Double-checked-locking-in-org.apache.qpid.server.tra.patch
> Double checked locking in org.apache.qpid.server.transport.ThreadPoolFilter
> ---------------------------------------------------------------------------
>
> Key: QPID-2653
> URL: https://issues.apache.org/jira/browse/QPID-2653
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.7
> Reporter: Sorin Suciu
> Priority: Minor
> Fix For: 0.7
>
> Attachments: 0001-Double-checked-locking-in-org.apache.qpid.server.tra.patch
>
>
> org.apache.qpid.server.transport.ThreadPoolFilter has a double check locking in this method:
> private SessionBuffer getSessionBuffer(IoSession session)
> {
> final Map buffers = this.buffers;
> SessionBuffer buf = (SessionBuffer) buffers.get(session);
> if (buf == null)
> {
> synchronized (buffers)
> {
> buf = (SessionBuffer) buffers.get(session);
> if (buf == null)
> {
> buf = new SessionBuffer(session);
> buffers.put(session, buf);
> }
> }
> }
> return buf;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org