working around a memory leak in commons-logging. And they don't even acknowledge that it's a bug. Sigh.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2868 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-04-06 14:20:13 +00:00
1 parent 26ee3433ed
commit 3bfa8af569
3 files changed
+14 -1

No files matched your search

@@ -18,6 +18,8 @@ import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.logging.LogFactory;
/**
* Manages {@link PluginWrapper}s.
*
@@ -129,6 +131,9 @@ public final class PluginManager {
for (PluginWrapper p : activePlugins) {
p.stop();
}
// Work around a bug in commons-logging.
// See http://www.szegedi.org/articles/memleak.html
LogFactory.release(uberClassLoader);
}
private final class UberClassLoader extends ClassLoader {