[foreign-memaccess] RFR 8226519: Add layout helper methods to obtain size and alignment in bytes

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Jun 25 14:11:47 UTC 2019


On 25/06/2019 13:56, Jorn Vernee wrote:
> Looks good, really like it!
>
> Minor nit: In the javadoc of Layout::bytesAlignment, the int and short 
> examples are still given in bits, instead of bytes.

Fixed and pushed, thank

Maurizio

>
> Jorn
>
> On 2019-06-20 16:35, Maurizio Cimadamore wrote:
>> Subject says it all: let's get rid of all "/ 8" in the API/tests by
>> offering handy (and safe) helpers which do the conversion.
>>
>> Webrev:
>>
>> http://cr.openjdk.java.net/~mcimadamore/panama/8226519/
>>
>> I've also slightly renamed the alignment method - to make it
>> consistent with the size one.
>>
>> Cheers
>> Maurizio


More information about the panama-dev mailing list