[foreign-memaccess+abi] RFR: 8296417: Make memory session a pure lifetime abstraction [v8]

Quan Anh Mai qamai at openjdk.org
Wed Nov 9 10:11:56 UTC 2022


On Wed, 9 Nov 2022 09:35:43 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> I think that `Arena` is a bad name. And if I read the document correctly, `MemorySession` is now a bad name, too, since essentially a `MemorySession` only allows read operations, it acts more like a view than a true session. Thanks a lot.
>
>> I think that `Arena` is a bad name. And if I read the document correctly, `MemorySession` is now a bad name, too, since essentially a `MemorySession` only allows read operations, it acts more like a view than a true session. Thanks a lot.
> 
> Names can be changed. I agree that `MemorySession` seems suboptimal now. We were thinking of other candidates like `SegmentScope`.
> 
> That said, I'd like to understand more where the problem is with `Arena`, can you please expand on why you think it's not a great name? Thanks.

@mcimadamore I think `Arena` is a word indicating mainly spacial properties, using it as a pure temporal abstraction seems unrelated and potentially misleading.

Moreover, in memory contexts, an arena is often used to indicate a contiguous piece of memory that can be sliced out to satisfy requested allocations. As a result, using it for an orthogonal responsibility may be confusing.

Thank you very much.

-------------

PR: https://git.openjdk.org/panama-foreign/pull/750


More information about the panama-dev mailing list