RFR: 8293067: (fs) Implement WatchService using system library (macOS)
Michael Hall
mik3hall at gmail.com
Sat Feb 4 07:34:18 UTC 2023
> On Feb 3, 2023, at 4:06 PM, Brian Burkhalter <bpb at openjdk.org> wrote:
>
> 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
This was some time ago and I have no current intention to continue work on that although I’m not sure I ever removed the code from the project.
More information about the nio-dev
mailing list