Integrated: 8329997: Add provisions for checking memory segment alignment constraints

Per Minborg pminborg at openjdk.org
Thu Apr 18 11:26:02 UTC 2024


On Mon, 15 Apr 2024 07:50:24 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> This PR proposes to add a new method `MemorySegment::maxByteAlignment` that returns the maximum byte alignment of a segment (both heap and native segments).
> 
> Clients can then use this method to determine if a segment is properly aligned for any given layout (e.g. following a `MemorySegment::reinterpret` operation).

This pull request has now been integrated.

Changeset: b648ed0a
Author:    Per Minborg <pminborg at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b648ed0a08b5ed47c1a7d7cbca89d8f389b17013
Stats:     135 lines in 4 files changed: 129 ins; 2 del; 4 mod

8329997: Add provisions for checking memory segment alignment constraints

Reviewed-by: jvernee, mcimadamore

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

PR: https://git.openjdk.org/jdk/pull/18779


More information about the core-libs-dev mailing list