7091935: (fs) Polling based WatchService not used on Linux
Remi Forax
forax at univ-mlv.fr
Sun Sep 18 03:01:21 PDT 2011
Looks good.
Remi
Alan Bateman <Alan.Bateman at oracle.com> 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