mirror of
https://github.com/Z3Prover/z3
synced 2025-11-25 23:19:32 +00:00
Java bindings with no finalizers
Replacing finalizers with PhantomReferences, required quite a lot of changes to the codebase.
This commit is contained in:
parent
dfc80d3b69
commit
495ef0f055
48 changed files with 368 additions and 939 deletions
|
|
@ -92,15 +92,10 @@ public class Tactic extends Z3Object
|
|||
super(ctx, Native.mkTactic(ctx.nCtx(), name));
|
||||
}
|
||||
|
||||
@Override
|
||||
void incRef(long o)
|
||||
{
|
||||
getContext().getTacticDRQ().incAndClear(getContext(), o);
|
||||
super.incRef(o);
|
||||
}
|
||||
|
||||
void decRef(long o)
|
||||
{
|
||||
getContext().getTacticDRQ().add(o);
|
||||
super.decRef(o);
|
||||
Native.tacticIncRef(getContext().nCtx(), o);
|
||||
getContext().getTacticDRQ().storeReference(getContext(), this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue