Java value layout constants

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Nov 29 14:58:15 UTC 2021


On 29/11/2021 14:46, Maurizio Cimadamore wrote:
> We can easily tweak this. But the two var handles are required to 
> workaround the performance penalties around JDK-8277850. 

Also note that usages like these:

https://github.com/mcimadamore/jdk/blob/value_layout_align/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java#L1443

Won't be too happy if we had two different methods.

Maurizio



More information about the panama-dev mailing list