Promptly freeing the per-thread cached direct buffers when a thread exits
Florian Weimer
fw at deneb.enyo.de
Thu Jun 21 20:13:47 UTC 2018
* Tony Printezis:
> There are a few obvious ways to mitigate this, e.g., cause a Full GC /
> concurrent GC cycle at regular intervals. However, the best solution IMHO
> is to explicitly free any direct buffers that are still in the cache when a
> thread exits.
Why is this safe? Couldn't these direct byte buffers be used with a
custom channel that leaks them to another thread?
More information about the core-libs-dev
mailing list