[foreign-memaccess] RFR 8235259: Java layout constants should use native endianness

Paul Sandoz paul.sandoz at oracle.com
Tue Dec 3 18:41:35 UTC 2019


+1

And one could use say Integer.LAYOUT.withOrder(ByteOrder.BIG_ENDIAN) for interop purposes.

Paul.

> On Dec 3, 2019, at 7:12 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
> 
> As discussed in [1, 2], this patch changes the endiannes polarity of JAVA_XYZ layout constants from big endian to native endian.
> 
> The move comes as a consequence of the realization that we want these constants to allow for interop with Java arrays - e.g. JAVA_INT should eventually become Integer::LAYOUT.
> 
> Webrev:
> 
> http://cr.openjdk.java.net/~mcimadamore/panama/8235259/
> 
> Cheers
> Maurizio
> 
> [1] - https://mail.openjdk.java.net/pipermail/panama-dev/2019-November/006737.html
> [2] - https://mail.openjdk.java.net/pipermail/panama-dev/2019-December/006785.html
> 



More information about the panama-dev mailing list