activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r581784 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
Date Thu, 04 Oct 2007 06:18:49 GMT
Author: rajdavies
Date: Wed Oct  3 23:18:49 2007
New Revision: 581784

URL: http://svn.apache.org/viewvc?rev=581784&view=rev
Log:
FilePendingMessageCursor was being added twice to the MemoryUsage
which resulted in a memory leak

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java?rev=581784&r1=581783&r2=581784&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
Wed Oct  3 23:18:49 2007
@@ -252,7 +252,6 @@
 
     public void setSystemUsage(SystemUsage usageManager) {
         super.setSystemUsage(usageManager);
-        usageManager.getMemoryUsage().addUsageListener(this);
     }
 
     public void onUsageChanged(Usage usage, int oldPercentUsage, int newPercentUsage) {



Mime
View raw message