activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r581736 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java
Date Wed, 03 Oct 2007 21:55:40 GMT
Author: rajdavies
Date: Wed Oct  3 14:55:40 2007
New Revision: 581736

URL: http://svn.apache.org/viewvc?rev=581736&view=rev
Log:
after canceling a TimerTask - purge from the Timer list - fix memory leak

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java?rev=581736&r1=581735&r2=581736&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/thread/Scheduler.java Wed
Oct  3 14:55:40 2007
@@ -53,6 +53,7 @@
     	TimerTask ticket = TIMER_TASKS.remove(task);
         if (ticket != null) {
             ticket.cancel();
+            CLOCK_DAEMON.purge();//remove cancelled TimerTasks
         }
     }
 



Mime
View raw message