diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs index 49f83c1cba..41100c9a40 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 } } } diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index f8b315243b..4b086d8447 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs @@ -75,17 +75,17 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine // Compile (We assume LSL) ScriptSource = LSLCompiler.PerformScriptCompile(Script); -#if DEBUG - long before; - before = GC.GetTotalMemory(true); -#endif +//#if DEBUG + //long before; + //before = GC.GetTotalMemory(true); // This force a garbage collect that freezes some windows plateforms +//#endif IScript CompiledScript; CompiledScript = m_scriptEngine.m_AppDomainManager.LoadScript(ScriptSource); -#if DEBUG - m_scriptEngine.Log.DebugFormat("[" + m_scriptEngine.ScriptEngineName + "]: Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); -#endif +//#if DEBUG + //m_scriptEngine.Log.DebugFormat("[" + m_scriptEngine.ScriptEngineName + "]: Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); +//#endif CompiledScript.Source = Script; // Add it to our script memstruct diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs index 04cb0d23a9..a933b08079 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/ScriptManager.cs @@ -70,17 +70,17 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine // Compile (We assume LSL) //ScriptSource = LSLCompiler.CompileFromLSLText(Script); -#if DEBUG - long before; - before = GC.GetTotalMemory(true); -#endif +//#if DEBUG + //long before; + //before = GC.GetTotalMemory(true); // This force a garbage collect that freezes some windows plateforms +//#endif IScript CompiledScript; CompiledScript = m_scriptEngine.m_AppDomainManager.LoadScript(ScriptSource); -#if DEBUG - Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); -#endif +//#if DEBUG + //Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); +//#endif CompiledScript.Source = ScriptSource; // Add it to our script memstruct