<div dir="ltr">Ahh okay, understood. Thanks for the swift reply =)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 3, 2022 at 11:20 AM Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com">maurizio.cimadamore@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

  
  <div>
    <p><br>
    </p>
    <div>On 03/11/2022 14:55, Gavin Ray wrote:<br>
    </div>
    <blockquote type="cite">
      <div>I recall at one point there being an open PR to add some kind
        of memory management/allocator interface (similar to Netty's
        MemoryManager IIRC)</div>
      <div><a href="https://urldefense.com/v3/__https://github.com/openjdk/panama-foreign/pull/509__;!!ACWV5N9M2RV99hQ!MGkwde_O1zcMAAqFsj5jOUAoqbw-JXW8ht4OYiP_Vx8YH3EScxEc5RJV4hMjkR5cRzQu1JfhGRhLJLrLqXlc5l4zvztN$" target="_blank">Pull requests Â· openjdk/panama-foreign
          (github.com)</a><br>
      </div>
      <div><a href="https://urldefense.com/v3/__https://netty.io/5.0/api/io.netty5.buffer/io/netty5/buffer/api/MemoryManager.html__;!!ACWV5N9M2RV99hQ!MGkwde_O1zcMAAqFsj5jOUAoqbw-JXW8ht4OYiP_Vx8YH3EScxEc5RJV4hMjkR5cRzQu1JfhGRhLJLrLqXlc5n1FAbMP$" target="_blank">MemoryManager (Netty API Reference
          (5.0.0.Alpha4))</a><br>
      </div>
      <div><br>
      </div>
      <div>Is this Arena interface filling the same sort of role that
        the "MemorySegmentPool + Allocator" PR would have played?</div>
      <div>It seemed like a useful PR, but it doesn't look like it had
        the intent to be merged, so I was just curious.</div>
    </blockquote>
    Hi Gavin,<br>
    Arena is a different thing. It can be used as a building block to
    implement custom allocators, such as the one you describe. But this
    is not about adding more custom allocators to the FFM API (that
    would be a separate discussion :-) ).<br>
    For now, the main thing is to make sure that the described proposal
    allows clients to cleanly build such custom allocators (see related
    email from Rado).<br>
    <p>Thanks<br>
      Maurizio<br>
    </p>
  </div>

</blockquote></div>