mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 00:48:45 +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
|
@ -266,17 +266,8 @@ public class Optimize extends Z3Object
|
|||
}
|
||||
|
||||
@Override
|
||||
void incRef(long o)
|
||||
{
|
||||
getContext().getOptimizeDRQ().incAndClear(getContext(), o);
|
||||
super.incRef(o);
|
||||
void incRef(long o) {
|
||||
Native.optimizeIncRef(getContext().nCtx(), o);
|
||||
getContext().getOptimizeDRQ().storeReference(getContext(), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
void decRef(long o)
|
||||
{
|
||||
getContext().getOptimizeDRQ().add(o);
|
||||
super.decRef(o);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue