[foreign-memaccess+abi] RFR: 8263018: Improve API for lifecycle of native resources [v10]
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Fri Mar 12 22:34:21 UTC 2021
On Fri, 12 Mar 2021 22:14:07 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Latest javadoc here:
>> http://cr.openjdk.java.net/~mcimadamore/panama/resourceScope-javadoc_v5/javadoc/jdk/incubator/foreign/package-summary.html
>
> Latest javadoc here:
> http://cr.openjdk.java.net/~mcimadamore/panama/resourceScope-javadoc_v6/javadoc/jdk/incubator/foreign/package-summary.html
A possible, improved naming for the two segment allocators:
SegmentAllocator.of(MemorySegment) -> SegmentAllocator.slicing(MemorySegment)
SegmentAllocator.of(ResourceScope) -> SegmentAllocator.scoped(ResourceScope)
What do you think?
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/466
More information about the panama-dev
mailing list