[foreign-memaccess+abi] RFR: Rework PlatformLayout

Per Minborg pminborg at openjdk.org
Wed Feb 15 08:33:13 UTC 2023


On Tue, 14 Feb 2023 17:14:52 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> This PR suggests slightly reworking the class `PlatformLayout`. This reduces the number of objects created and aggregates common functionality in a support method.

src/java.base/share/classes/jdk/internal/foreign/PlatformLayouts.java line 252:

> 250:     }
> 251: 
> 252:     private static ValueLayout.OfAddress cPointer(ValueLayout targetLayoutElementLayout) {

Maybe there is a better name? `elementLayout` perhaps?

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

PR: https://git.openjdk.org/panama-foreign/pull/794


More information about the panama-dev mailing list