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
|
@ -59,11 +59,9 @@ public class TupleSort extends Sort
|
|||
TupleSort(Context ctx, Symbol name, int numFields, Symbol[] fieldNames,
|
||||
Sort[] fieldSorts)
|
||||
{
|
||||
super(ctx, 0);
|
||||
|
||||
Native.LongPtr t = new Native.LongPtr();
|
||||
setNativeObject(Native.mkTupleSort(ctx.nCtx(), name.getNativeObject(),
|
||||
super(ctx, Native.mkTupleSort(ctx.nCtx(), name.getNativeObject(),
|
||||
numFields, Symbol.arrayToNative(fieldNames),
|
||||
AST.arrayToNative(fieldSorts), t, new long[numFields]));
|
||||
AST.arrayToNative(fieldSorts), new Native.LongPtr(),
|
||||
new long[numFields]));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue