[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-dev
Subject:    [GitHub] activemq-artemis issue #1477: ARTEMIS-1356 Avoid allocations and atomic oper...
From:       franz1981 <git () git ! apache ! org>
Date:       2017-08-22 12:52:45
Message-ID: 20170822125245.49433DFBFF () git1-us-west ! apache ! org
[Download RAW message or body]

Github user franz1981 commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1477
  
    @clebertsuconic 
    Here:
    https://github.com/apache/activemq-artemis/blob/e81c8c26d02f156e75fe03cb8cc8ad92e4 \
bca30e/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/ServerSessionPacketHandler.java#L231
  
    On each first ThreadLocal::get call from a different thread, the ThreadLocal \
allocates and cache (locally to the thread) a new AtomicBoolean.  In addition, the \
AtomicBoolean::get and AtomicBoolean::set operations can be avoided to "mark" the \
handler thread...



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic