7091935: (fs) Polling based WatchService not used on Linux

Mike Duigou mike.duigou at oracle.com
Sun Sep 18 13:19:40 PDT 2011


Looks fine.

Mike

On Sep 18 2011, at 01:25 , Alan Bateman wrote:

> 
> As folks will recall, we have 4 implementations of WatchService, one each for Solaris, Linux, and Windows and then a poor performing but portable implementation that polls the file system. Currently on Linux we build both the inotify and polling implementation but the polling implementation is never used at runtime. The attached patch just removes it from the make file so that it is no longer included on this platform.
> 
> Thanks,
> Alan.
> 
> diff --git a/make/java/nio/Makefile b/make/java/nio/Makefile
> --- a/make/java/nio/Makefile
> +++ b/make/java/nio/Makefile
> @@ -206,7 +206,6 @@ FILES_java += \
>       sun/nio/fs/LinuxUserDefinedFileAttributeView.java \
>       sun/nio/fs/LinuxNativeDispatcher.java \
>       sun/nio/fs/LinuxWatchService.java \
> -       sun/nio/fs/PollingWatchService.java \
>       sun/nio/fs/UnixChannelFactory.java \
>       sun/nio/fs/UnixCopyFile.java \
>       sun/nio/fs/UnixDirectoryStream.java \
> 



More information about the nio-dev mailing list