RFR: 8307181: MemoryLayout.structLayout uses undocumented strict alignment constraints

Maurizio Cimadamore mcimadamore at openjdk.org
Wed May 3 14:57:16 UTC 2023


On Wed, 3 May 2023 14:54:26 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> Actually, now that I look at it, it seems that the exception we raise is not correct. I think we need to throw if the element size is not a multiple of the alignment. That is, the size determines the stride, so that has to be a multiple of the alignment, otherwise it won't work.

If that's ok, I'd like to address this other issue in a separate PR/CSR, for clarity.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13770#issuecomment-1533184599


More information about the core-libs-dev mailing list