RFR: JDK-8298277: Replace "session" with "scope" for FFM access
Per Minborg
pminborg at openjdk.org
Thu Dec 8 15:28:13 UTC 2022
On Thu, 8 Dec 2022 14:36:52 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> src/java.base/share/classes/jdk/internal/foreign/abi/Binding.java line 255:
>>
>>> 253: * the context's allocator is accessed.
>>> 254: */
>>> 255: public static Context ofScope() {
>>
>> I think `ofArena` seems more apt here?
>
> More generally, I think that now that we can subclass Arena, Binding.Context can just become a subclass of Arena. Then we might have several implementations, some of which throw on allocate(), some other will throw on scope() and close(). Seems a more direct approach.
Let's do that in a separate PR.
-------------
PR: https://git.openjdk.org/jdk/pull/11593
More information about the core-libs-dev
mailing list