geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r814437 - /geronimo/server/trunk/plugins/connector-1_6/geronimo-transaction-1_6/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java
Date Sun, 13 Sep 2009 23:30:34 GMT
Author: kevan
Date: Sun Sep 13 23:30:34 2009
New Revision: 814437

URL: http://svn.apache.org/viewvc?rev=814437&view=rev
Log:
GERONIMO-4869 Initialize TransactionTimer CurrentTime thread during initialization. This avoids
inheriting ThreadLocals which could cause a ClassLoader memory leak

Modified:
    geronimo/server/trunk/plugins/connector-1_6/geronimo-transaction-1_6/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java

Modified: geronimo/server/trunk/plugins/connector-1_6/geronimo-transaction-1_6/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/connector-1_6/geronimo-transaction-1_6/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java?rev=814437&r1=814436&r2=814437&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/connector-1_6/geronimo-transaction-1_6/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java
(original)
+++ geronimo/server/trunk/plugins/connector-1_6/geronimo-transaction-1_6/src/main/java/org/apache/geronimo/transaction/manager/TransactionManagerImplGBean.java
Sun Sep 13 23:30:34 2009
@@ -42,6 +42,9 @@
      */
     public TransactionManagerImplGBean(int defaultTransactionTimeoutSeconds, XidFactory xidFactory,
TransactionLog transactionLog) throws XAException {
         super(defaultTransactionTimeoutSeconds, xidFactory, transactionLog);
+        // Start the TransactionTimer$CurrentTime thread. This should avoid potential ClassLoader

+        // memory leaks caused by InheritableThreadLocals on the CurrentTime thread. See
GERONIMO-4869 for more info.
+        TransactionTimer.getCurrentTime();
     }
 
     public static final GBeanInfo GBEAN_INFO;



Mime
View raw message