trz update - nio.2 MacFileSystemProvider added kqueue WatchService

Alan Bateman Alan.Bateman at oracle.com
Sun Jul 29 20:54:26 PDT 2012


On 30/07/2012 02:05, Michael Hall wrote:
> I have added an implementation of a kqueue based WatchService implementation to my OS X specific nio.2 code.
>
> At this time this code will run a slightly modified version of the openjdk WatchService Basic test code. (See known_issues.txt for more info).
>
> This provides a platform specific non-polling native solution to replace the generic polling WatchService currently being provided in Java 7 for OS X.
>
> I intend to provide one more WatchService based on FSEvents for OS X. See [1[ for mention of kqueue vs. fsevents use.
>
It looks like you have made good progress. I have not tried your file 
system provider yet but is the WatchService implementation something 
that you would be willing to contribute to OpenJDK? I don't know if you 
have tried to run the unit tests that in the 
test/java/nio/file/WatchService directory but it would be interesting to 
see if it passes these tests.

-Alan


More information about the nio-dev mailing list