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! --- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index f8b3152..4b086d8 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 -- cgit v1.1