JDK-8293067 : (fs) Implement WatchService using system library (macOS)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • Submitted: 2022-08-30
  • Updated: 2024-05-20
Related Reports
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
WatchService on MacOS is still implemented by the generic PollingWatchService, which continuously re-scans the directory consuming CPU, introduces large latencies to the generated WatchEvent's, and misses changes that occur faster than the re-scan interval. At the same time, there are two technologies available on the platform to receive the necessary information from the OS similar to what is available on Windows and Linux: Kernel Queues and File System Events, the latter being more suitable for implementing the WatchServie functionality.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10140 Date: 2022-09-02 07:54:32 +0000
02-09-2022

This is also tracked as JDK-7133447.
30-08-2022