> 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).
Per Minborg has updated the pull request incrementally with one additional commit since the last revision: Update docs for maxByteAlignment ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18779/files - new: https://git.openjdk.org/jdk/pull/18779/files/e971e7f6..8b944a35 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18779&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18779&range=04-05 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18779.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18779/head:pull/18779 PR: https://git.openjdk.org/jdk/pull/18779