RFR: 8293067: (fs) Implement WatchService using system library (macOS)
Michael Hall
mik3hall at gmail.com
Tue Sep 13 22:16:23 UTC 2022
> On Sep 13, 2022, at 11:46 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>
>
>> On Sep 12, 2022, at 4:24 AM, Michael Hall <mik3hall at gmail.com <mailto:mik3hall at gmail.com>> wrote:
>>
>> I had attempted a kqueue based OS/X watch service sometime back that failed, so it’s interesting to see one working.
>
> Concerning kqueue, please see my comment here:
>
> https://bugs.openjdk.org/browse/JDK-7133447?focusedCommentId=14522734&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14522734 <https://bugs.openjdk.org/browse/JDK-7133447?focusedCommentId=14522734&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14522734>
>
> Brian
I suppose it could of been number of file descriptors. Do you remember specific problems with the LotsOfEvents test? I remember the java would block waiting for something to happen. The kqueue native thread would loop on it’s on thread waiting for events but the kernel would just stop sending them.
It’s been a while since I looked at the code so I don’t remember if I had any cleanup that would release file descriptors. I probably should have. But I don’t remember on what conditions it ran if I did.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20220913/b8982817/attachment.htm>
More information about the nio-dev
mailing list