[foreign-memaccess+abi] Integrated: 8300785: Add way to select group element paths by index
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Jan 20 16:44:33 UTC 2023
On Fri, 20 Jan 2023 15:32:21 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch adds a new factory to MemoryLayout.PathElement, namely, to create a group element path from a long index, rather than a name. While named struct/union fields are common, there are cases where being able to access elements by index is important, such when doing a full (recursive) scan of the contents of a struct.
This pull request has now been integrated.
Changeset: 8a005941
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/panama-foreign/commit/8a005941e527204a0fc0b1ef6fe833c69f02980c
Stats: 85 lines in 3 files changed: 57 ins; 0 del; 28 mod
8300785: Add way to select group element paths by index
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.org/panama-foreign/pull/773
More information about the panama-dev
mailing list