On Thu, 8 Dec 2022 14:36:52 GMT, Maurizio Cimadamore <[email protected]> 
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

Reply via email to