RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v5]

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Sep 30 14:34:36 UTC 2024


On Mon, 23 Sep 2024 16:35:18 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR prevents sequence layout with padding to be used with the Linker.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reword doce

> And why doesn't the current stripNames remove the targets from AddressLayout for the parameters from DowncallHandle?

I suspect because the target layout is potentially significant in:
* return position (for downcalls)
* parameter position (for upcalls)

It is true that target layout is ignored in the dual cases of the ones above - but that's a separate issue/optimization that should not be addressed by this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/21041#issuecomment-2383382131


More information about the core-libs-dev mailing list