Revision: 18300
http://sourceforge.net/p/gate/code/18300
Author: markagreenwood
Date: 2014-09-09 13:54:05 +0000 (Tue, 09 Sep 2014)
Log Message:
-----------
don't flush the bean cahces if we don't need to
Modified Paths:
--------------
gate/trunk/src/main/gate/util/GateClassLoader.java
Modified: gate/trunk/src/main/gate/util/GateClassLoader.java
===================================================================
--- gate/trunk/src/main/gate/util/GateClassLoader.java 2014-09-09 01:20:28 UTC
(rev 18299)
+++ gate/trunk/src/main/gate/util/GateClassLoader.java 2014-09-09 13:54:05 UTC
(rev 18300)
@@ -317,11 +317,17 @@
* @param id the id of the classloader to forget
*/
public void forgetClassLoader(String id) {
- Introspector.flushCaches();
- AbstractResource.flushBeanInfoCache();
+
+ GateClassLoader gcl;
+
synchronized(childClassLoaders) {
- childClassLoaders.remove(id);
+ gcl = childClassLoaders.remove(id);
}
+
+ if (gcl != null && !gcl.isIsolated()) {
+ Introspector.flushCaches();
+ AbstractResource.flushBeanInfoCache();
+ }
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs