On Mon, 15 Jul 2024 09:02:29 GMT, Uwe Schindler <uschind...@openjdk.org> wrote:

> Of course we can do that in a separate thread (this is my idea how to improve 
> the closes in lucene).

This is what I was thinking of as well. `close()` on a shared arena can be 
called by any thread, so it would be possible to have an executor service with 
1-n threads that is dedicated to closing memory.

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

PR Comment: https://git.openjdk.org/jdk/pull/20158#issuecomment-2228215031

Reply via email to