diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs | 14 |
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 | } |