[foreign-abi] RFR: JDK-8242061: AllocationScope is too general
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Thu Apr 2 21:16:32 UTC 2020
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).
-------------
Commit messages:
- Make AllocationScope native-only
Changes: https://git.openjdk.java.net/panama-foreign/pull/93/files
Webrev: https://webrevs.openjdk.java.net/panama-foreign/93/webrev.00
Issue: https://bugs.openjdk.java.net/browse/JDK-JDK-8242061
Stats: 687 lines in 6 files changed: 258 ins; 361 del; 68 mod
Patch: https://git.openjdk.java.net/panama-foreign/pull/93.diff
Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/93/head:pull/93
PR: https://git.openjdk.java.net/panama-foreign/pull/93
More information about the panama-dev
mailing list