You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2008/03/02 00:49:02 UTC

svn commit: r632676 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java

Author: rickhall
Date: Sat Mar  1 15:49:01 2008
New Revision: 632676

URL: http://svn.apache.org/viewvc?rev=632676&view=rev
Log:
Null a local variable to help speed garbage collection.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java?rev=632676&r1=632675&r2=632676&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Sat Mar  1 15:49:01 2008
@@ -1145,6 +1145,9 @@
                 // Always release bundle lock.
                 releaseBundleLock(impl);
             }
+            // Hint to GC to collect bundle; not sure why this
+            // is necessary, but it appears to help.
+            bundles[i] = null;
         }
 
         if (m_systemBundleInfo.getState() == Bundle.ACTIVE)
@@ -4420,4 +4423,4 @@
             m_bundleLock.notifyAll();
         }
     }
-}
\ No newline at end of file
+}