JDK 10 RFR of 8147615: (fc) FileChannelImpl has no finalizer
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Sep 5 19:31:22 UTC 2017
On Sep 5, 2017, at 11:34 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> On Sep 4, 2017, at 4:39 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
>> Yes, this is hard to test as you will likely run out of file descriptors before the cleaner runs. One thing you could do is use the management API and check if the OperatingSystemMXBean is a UnixOperatingSystemMXBean as that will give you an easy way to get the maximum and open file descriptors.
>
> But we can’t have java.base depending on jdk.management, can we?
Never mind: I am sure you meant to use that in a test, not java.nio.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170905/0a835f52/attachment.html>
More information about the nio-dev
mailing list