Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8175115

Improve instrumentation of java/nio/file/WatchService/LotsOfEvents.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b159

      Backports

        Description

        As per JDK-8174819, LotsOfEvents fails occasionally due to an insufficient number of file creation events having been received. This appears to occur only on OS X which uses the non-native PollingWatchService implementation which in theory could be less efficient than a WatchService which is based on a native file change notification mechanism. Add some instrumentation to attempt to detect whether the failure could be due to inefficiency in the polling implementation.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bpb Brian Burkhalter
                  Reporter:
                  bpb Brian Burkhalter
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: