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:
parent
635fbee2bc
commit
3b78509d0a
16 changed files with 44 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue