Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBEAP-3173 Synchronization performed on java.util.concurrent.ConcurrentLinkedDeque object in class NettyConnection #411

Closed
wants to merge 2 commits into from

Conversation

kurobako
Copy link
Contributor

@kurobako kurobako commented Mar 4, 2016

JBEAP-3173 Synchronization performed on java.util.concurrent.ConcurrentLinkedDeque object in class NettyConnection

  • synchronized keywords are now placed on methods since there are only two such methods in the class and both use the same monitor
  • LinkedList is used as a stack holding ReadyListeners instead of blocking data structure since all access to it is serialized anyway and there is no reason to have additional memory barriers.

@kurobako
Copy link
Contributor Author

kurobako commented Mar 4, 2016

from Jenkins log:

[INFO] There is 1 error reported by Checkstyle 6.2 with /x1/jenkins/jenkins-slave/workspace/ActiveMQ-Artemis-PR-Build/artemis-core-client/../etc/checkstyle.xml ruleset.
[ERROR] src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java27:8 UnusedImports: Unused import - java.util.concurrent.CountDownLatch.

please note my changes are in NettyConnection.java and have nothing to do with reported error

@clebertsuconic
Copy link
Contributor

JBEAP is not an apache JIRA. It belongs to your internal system. Can you ammend the commit and remove such JIRA comment please? Perhaps you should create an apache JIRA.

Although I'm not sure about your commit, you are using the synchronized on the NettyConnection while I wanted to leave it alone. I will probably amend your commit before merging anyways.

@asfgit asfgit force-pushed the master branch 2 times, most recently from ce7d93d to 958d746 Compare March 7, 2016 20:54
@asfgit asfgit closed this in 6435e49 Mar 7, 2016
@kurobako kurobako deleted the JBEAP-3173 branch May 27, 2016 09:56
clebertsuconic pushed a commit to clebertsuconic/activemq-artemis that referenced this pull request Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants