[foreign-memaccess+abi] Integrated: 8274219: Add back generic factory to create value layouts

Maurizio Cimadamore mcimadamore at openjdk.java.net
Thu Sep 23 20:36:23 UTC 2021


On Thu, 23 Sep 2021 17:07:34 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This patch adds back a factory to create value layouts in a generic way. While we cannot make the API 100% type safe, some dynamic usages can greatly benefit from this. The `Binding` class provides a good example (greatly simplified here). Also, the logic for reconstructing layouts (see `describeConstable`) becomes a lot more regular.

This pull request has now been integrated.

Changeset: 79b304b4
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/79b304b4f423189e84bc6085e576ac1d9c9e6ab3
Stats:     172 lines in 4 files changed: 87 ins; 78 del; 7 mod

8274219: Add back generic factory to create value layouts

Reviewed-by: jvernee, psandoz

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

PR: https://git.openjdk.java.net/panama-foreign/pull/579


More information about the panama-dev mailing list