more changes on YEngine scripts heap usage

This commit is contained in:
UbitUmarov
2019-11-22 04:09:05 +00:00
parent 647622bb02
commit 9b7ad30ee1
6 changed files with 54 additions and 45 deletions

View File

@@ -86,7 +86,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
m_StackSize = stackSize;
m_StackLeft = stackSize;
m_HeapSize = heapSize;
m_heapUsed = 0;
m_localsHeapUsed = 0;
m_arraysHeapUsed = 0;
m_CompilerErrors = errors;
m_StateFileName = GetStateFileName(scriptBasePath, m_ItemID);
@@ -904,7 +905,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
glblVars.iarStrings = strings;
glblVars.iarLists = lists;
AddHeapUse(heapsz);
AddArraysHeapUse(heapsz);
CheckRunLockInvariants(true);
}