felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r632676 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
Date Sat, 01 Mar 2008 23:49:02 GMT
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
+}



Mime
View raw message