From a83b7a292bc3c18c9c6a1aa17cfc2622b99804c4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 15 Apr 2019 23:32:22 +0100 Subject: mantis 8518: Yengine; we can't wait for GC (worse finalizers) to count released memory of some local variables, so add a pseudo free; fix memory account on timeslice rentry; change the folder for the debug IL files; fix memory usage on reset. This changes will only take effect on new compiles --- OpenSim/Region/ScriptEngine/YEngine/MMRScriptCollector.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/YEngine/MMRScriptCollector.cs') diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptCollector.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptCollector.cs index 75eae53..e92f429 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptCollector.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptCollector.cs @@ -2611,10 +2611,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine // everything required by any blocks it can branch to. do { - this.resolvedSomething = false; - this.resolveSequence++; - this.ResolveBlock((GraphNodeBlock)firstLin); - } while(this.resolvedSomething); + resolvedSomething = false; + resolveSequence++; + ResolveBlock((GraphNodeBlock)firstLin); + } while(resolvedSomething); // Repeat the cutting loops as long as we keep finding stuff. bool didSomething; @@ -2939,7 +2939,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine return; // So we don't recurse forever on a backward branch. - currentBlock.hasBeenResolved = this.resolveSequence; + currentBlock.hasBeenResolved = resolveSequence; // Assume we haven't written any locals yet. List localsWrittenSoFar = new List(); @@ -2975,7 +2975,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine !currentBlock.localsReadBeforeWritten.Contains(readByNextBlock)) { currentBlock.localsReadBeforeWritten.Add(readByNextBlock); - this.resolvedSomething = true; + resolvedSomething = true; } } } -- cgit v1.1