[foreign-abi] [Rev 01] RFR: JDK-8242061: AllocationScope is too general
Jorn Vernee
jvernee at openjdk.java.net
Fri Apr 3 10:08:19 UTC 2020
On Thu, 2 Apr 2020 22:56:01 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> This patch restricts allocation scope to work only on native allocations. This restriction allows us to lift the size
>> limitations from unbounded allocation scopes (as we can always fallback on a MemorySegment.allocateNative which
>> guarantees correct alignment).
>
> Maurizio Cimadamore has updated the pull request incrementally with two additional commits since the last revision:
>
> - Tweak test to also check alignment of allocatd blocks
> - * Fix allocation limit for case where standalone segment is created (limit has to take into account worst case with
> alignment)
> * Add test for big allocations
Looks good to me
-------------
Marked as reviewed by jvernee (Committer).
PR: https://git.openjdk.java.net/panama-foreign/pull/93
More information about the panama-dev
mailing list