From 9c428d993504afbda5d11dd644fe1694cc1aee95 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 18 Mar 2008 13:39:29 +0000 Subject: * Applied Grumly57 patch for #781; Thanks, Grumly! --- .../Common/ScriptEngineBase/AppDomainManager.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase') 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 { // Remove from internal list appDomains.Remove(ads); -#if DEBUG - Console.WriteLine("Found empty AppDomain, unloading"); - long m = GC.GetTotalMemory(true); -#endif +//#if DEBUG + //Console.WriteLine("Found empty AppDomain, unloading"); + //long m = GC.GetTotalMemory(true); // This force a garbage collect that freezes some windows plateforms +//#endif // Unload AppDomain.Unload(ads.CurrentAppDomain); -#if DEBUG - m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + "]: AppDomain unload freed " + (m - GC.GetTotalMemory(true)) + " bytes of memory"); -#endif +//#if DEBUG + //m_scriptEngine.Log.Info("[" + m_scriptEngine.ScriptEngineName + "]: AppDomain unload freed " + (m - GC.GetTotalMemory(true)) + " bytes of memory"); +//#endif } } } -- cgit v1.1