[ 
https://issues.apache.org/jira/browse/QPID-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sorin Suciu reassigned QPID-2653:
---------------------------------

    Assignee: Sorin Suciu

> 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
>            Assignee: Sorin Suciu
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: 
> 0001-Double-checked-locking-in-org.apache.qpid.server.tra.patch, 
> qpid-2653.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-subscr...@qpid.apache.org

Reply via email to