aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs
diff options
context:
space:
mode:
authorlbsa712008-03-18 13:39:29 +0000
committerlbsa712008-03-18 13:39:29 +0000
commit9c428d993504afbda5d11dd644fe1694cc1aee95 (patch)
tree7e4f2dd9f19cb11167e2819f463db3b016cc8654 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs
parent* Remove unused (and somewhat nonsensical) method in PhysicsActor (diff)
downloadopensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.zip
opensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.tar.gz
opensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.tar.bz2
opensim-SC-9c428d993504afbda5d11dd644fe1694cc1aee95.tar.xz
* Applied Grumly57 patch for #781; Thanks, Grumly!
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs
index 49f83c1..41100c9 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs
@@ -173,15 +173,15 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
173 { 173 {
174 // Remove from internal list 174 // Remove from internal list
175 appDomains.Remove(ads); 175 appDomains.Remove(ads);
176#if DEBUG 176//#if DEBUG
177 Console.WriteLine("Found empty AppDomain, unloading"); 177 //Console.WriteLine("Found empty AppDomain, unloading");
178 long m = GC.GetTotalMemory(true); 178 //long m = GC.GetTotalMemory(true); // This force a garbage collect that freezes some windows plateforms
179#endif 179//#endif
180 // Unload 180 // Unload
181 AppDomain.Unload(ads.CurrentAppDomain); 181 AppDomain.Unload(ads.CurrentAppDomain);
182#if DEBUG 182//#if DEBUG
183 m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + "]: AppDomain unload freed " + (m - GC.GetTotalMemory(true)) + " bytes of memory"); 183 //m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + "]: AppDomain unload freed " + (m - GC.GetTotalMemory(true)) + " bytes of memory");
184#endif 184//#endif
185 } 185 }
186 } 186 }
187 } 187 }