8212132: (dc) Remove DatagramChannelImpl finalize method
Daniel Fuchs
daniel.fuchs at oracle.com
Tue Oct 22 18:33:54 UTC 2019
The source changes look good to me Alan!
Regarding the test: I wonder though about using the
UnixOperatingSystemMXBean: does that work on Windows?
best regards,
-- daniel
On 22/10/2019 16:32, Alan Bateman wrote:
> Lots of good work in recent releases to replace the use of finalizers in
> the java.base module with the cleaner mechanism. The DatagramChannel
> implementation is still using a finalizer so it's time to replace that.
> While in the area I removed the wrapper around the cleaner used in the
> NIO SocketImpl as it is not needed.
>
> The proposed changes are here:
> http://cr.openjdk.java.net/~alanb/8212132/webrev/index.html
>
> -Alan
More information about the nio-dev
mailing list