RFR: 8293067: (fs) Implement WatchService using system library (macOS)

Brian Burkhalter bpb at openjdk.org
Fri Feb 3 22:06:20 UTC 2023


On Fri, 3 Feb 2023 21:54:37 GMT, Michael Hall <mik3hall at gmail.com> wrote:

> It lacks a WatchService ,my own attempt at a kqueue one for that coming up short.

As was previously discussed (I think) I don't believe that a `kqueue` implementation is feasible as it will eventually run out of file descriptors. This is specifically due to `MODIFY` which cannot be detected without having an open file descriptor for each monitored file.

-------------

PR: https://git.openjdk.org/jdk/pull/10140


More information about the nio-dev mailing list