[foreign-abi] RFR 8237899: Add support for scoped allocation
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Jan 29 10:48:09 UTC 2020
On 29/01/2020 03:59, Michael Zucchi wrote:
>
> sweet, nice addition
Thanks :-)
> .
>
> any change of a segmentScope() call?
Sorry - I don't follow?
Maurizio
>
> On 28/1/20 5:44 am, Maurizio Cimadamore wrote:
>> Hi,
>> after having programmed a quite a bit with both the old and new
>> jextract bindings, I noted a mismatch (which was recently pointed out
>> by Michael too); in C local variables are just... variables allocated
>> on stack. If you need a pointer to them, you can just use C's
>> dereference operator (&) and be done.
>>
>> In Panama-ized code, going from a regular variable (e.g. an int) to a
>> variable that can be dereferenced (e.g. a MemoryAddress containing an
>> int) is quite
>
More information about the panama-dev
mailing list