diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs index 490de74..092d9c2 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstAbstract.cs | |||
@@ -452,6 +452,11 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
452 | return newuse; | 452 | return newuse; |
453 | } | 453 | } |
454 | 454 | ||
455 | public virtual void AddHeapUse(int delta) | ||
456 | { | ||
457 | Interlocked.Add(ref heapUsed, delta); | ||
458 | } | ||
459 | |||
455 | public int xmrHeapLeft() | 460 | public int xmrHeapLeft() |
456 | { | 461 | { |
457 | return heapLimit - heapUsed; | 462 | return heapLimit - heapUsed; |