On 06/04/2018 18:17, Tony Printezis wrote:
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.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?
-Alan