3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00

Improved memory use of the .NET API

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2015-01-30 20:45:16 -06:00
parent 635fbee2bc
commit 3b78509d0a
16 changed files with 44 additions and 9 deletions

View file

@ -40,7 +40,12 @@ namespace Microsoft.Z3
readonly internal protected Object m_lock = new Object();
readonly internal protected List<IntPtr> m_queue = new List<IntPtr>();
internal const uint m_move_limit = 1024;
internal uint m_move_limit;
public IDecRefQueue(uint move_limit = 1024)
{
m_move_limit = move_limit;
}
public abstract void IncRef(Context ctx, IntPtr obj);
public abstract void DecRef(Context ctx, IntPtr obj);