NativeScope in jextract code
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Apr 26 09:54:21 UTC 2021
This has been left for compatibility during the migration, but you are
right, strictly speaking is no longer needed.
I also generally recommend avoiding NativeScope - since now the concept
of arena allocator is supported by the API and provides the same
features w/o an external API point; so we might, at some point, remove
it from jextract, with the aim of reducing ancillary generated classes
(including RuntimeHelper).
Maurizio
On 25/04/2021 10:38, Duncan Gittins wrote:
> I've rebuilt with latest panama-foreign and noticed that there is a
> NativeScope class in the generated code referenced once from RuntimeHelper:
>
> static final <Z> MemorySegment upcallStub(Class<Z> fi, Z z,
> FunctionDescriptor fdesc, String mtypeDesc, NativeScope scope);
>
> I couldn't find any callers of this method or other dependencies of
> NativeScope in the generated code. Is this class needed / intended for
> future use inside the jextract generated code?
>
> Kind regards
>
> Duncan
More information about the panama-dev
mailing list