[foreign] RFR 8211006: Add API points to support by-value semantics for structs and arrays
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Sep 24 14:36:16 UTC 2018
Thanks - pushed (as discussed privately, I also updated the signatures
of the two new methods to be polymorphic in the array/struct type, to
enhance static safety).
Maurizio
On 24/09/18 14:50, Sundararajan Athijegannathan wrote:
> Looks good
>
> -Sundar
>
> On 21/09/18, 8:47 PM, Maurizio Cimadamore wrote:
>> As written in the issue summary (see for more details):
>>
>> https://bugs.openjdk.java.net/browse/JDK-8211006
>>
>> We need API points to perform deep copy of structs/arrays, which
>> would allow developers to easily mimic what happens when operating on
>> struct/array struct fields.
>>
>> I also did a minor tweak on References.ofArray, as the setter was
>> redundantly creating an Array object instead of just copying.
>>
>> Webrev:
>>
>> http://cr.openjdk.java.net/~mcimadamore/panama/8211006/
>>
>> Cheers
>> Maurizio
>>
>>
More information about the panama-dev
mailing list