This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255757

Summary: Use NIO2 Notifier by default
Product: platform Reporter: Jaroslav Havlin <jhavlin>
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Attachments: Working draft of patch
First measurement results

Description Jaroslav Havlin 2015-10-07 08:55:51 UTC
Currently, native file system notifiers are used by default on major platforms.
We might use NIO2 notifier by default and possibly, if it works correctly,
remove native notifiers completely in some future release.
(Some system property for enforcing native notifier should be provided.)
Comment 1 Jaroslav Havlin 2015-10-08 13:00:10 UTC
Notes:

 - NIO2 WatchService was originally used in Solaris notifier by Egor Ushakov
   (masterfs.solaris), which was then generalized and renamed to masterfs.nio2.

 - NIO2 WatchService implementation for Mac OS X uses inefficient polling.
   See https://bugs.openjdk.java.net/browse/JDK-7133447.

 - Performance on Windows and Linux should be checked and measured and compared
   to native implementations.
Comment 2 Jaroslav Havlin 2015-10-23 15:31:21 UTC
Created attachment 156938 [details]
Working draft of patch
Comment 3 Jaroslav Havlin 2015-10-23 15:32:25 UTC
Created attachment 156939 [details]
First measurement results