You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ma...@apache.org on 2026/08/06 00:54:34 UTC

(activemq) branch activemq-6.2.x updated: [#2275] Drop redundant sequence generator monitor in RegionBroker (#2413)

This is an automated email from the ASF dual-hosted git repository.

mattrpav pushed a commit to branch activemq-6.2.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-6.2.x by this push:
     new 79fe6c25df [#2275] Drop redundant sequence generator monitor in RegionBroker (#2413)
79fe6c25df is described below

commit 79fe6c25dfc2d63bbf09414799b08ca01ace2ee4
Author: Matt Pavlovich <ma...@apache.org>
AuthorDate: Wed Aug 5 19:54:28 2026 -0500

    [#2275] Drop redundant sequence generator monitor in RegionBroker (#2413)
    
    (cherry picked from commit 1907de6aba1299a3e60a2b20d8c38e19f9813ac2)
---
 .../main/java/org/apache/activemq/broker/region/RegionBroker.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/RegionBroker.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
index 7d5de4c184..ed74493e15 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
@@ -865,9 +865,9 @@ public class RegionBroker extends EmptyBroker {
      */
     @Override
     public long getBrokerSequenceId() {
-        synchronized (sequenceGenerator) {
-            return sequenceGenerator.getNextSequenceId();
-        }
+        // LongSequenceGenerator is atomic; no monitor needed on this hot path
+        // (stamped on every send for every destination).
+        return sequenceGenerator.getNextSequenceId();
     }
 
     @Override


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact