[foreign-jextract] RFR: 8244128: Allocations larger than MAX_ALIGN can fail to be sliced to proper size.
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Wed Apr 29 18:59:02 UTC 2020
On Wed, 29 Apr 2020 18:09:44 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Hi,
>
> This patch fixes a problem where the MemorySegment resulting from an allocation was not always sliced to the requested
> size, when the allocation code was manually up-sizing the allocation in order to perform manual alignment of the
> returned MemorySegment, but the initial allocation turned out to be aligned any ways. Thanks,
> Jorn
Looks good - good catch; I'll also add this to the RFR against jdk/jdk, since it seems a general issue
-------------
Marked as reviewed by mcimadamore (Committer).
PR: https://git.openjdk.java.net/panama-foreign/pull/136
More information about the panama-dev
mailing list