Promptly freeing the per-thread cached direct buffers when a thread exits

Alan Bateman Alan.Bateman at
Sun Apr 8 16:28:43 UTC 2018

On 06/04/2018 18:17, Tony Printezis wrote:
> Hi Alan,
> Ah, I hadn’t realized that there’s already some tight coupling between 
> Thread and nio. OK, I’ll just call into sun.nio directly and see what 
> the reviewers say. :-) Is there a CR for this already? Or should I 
> create one?
I think it should be possible to come up with something clean so that at 
least code in java.base can register simple callbacks to execute at 
thread exit time. There are only one or two areas that will need this.


More information about the core-libs-dev mailing list