Java Cup
Inside Java

News and views from members of the Java team at Oracle

Dissecting Memory Sessions

It became increasingly clear that memory sessions, in their current shape and form, are trying to do too much - from allocation, to lifecycle management and more. The issue with 'sneaky' close is mostly a manifestation of that more fundamental problem. In that spirit, we have put together a document which teases apart the various 'traits' associated with memory sessions, and repackages the same traits into an API that provides better encapsulation and composition.


More at https://mail.openjdk.org/pipermail/panama-dev/2022-November/017991.html.