Uploaded image for project: 'Commons JCI'
  1. Commons JCI
  2. JCI-74

FilesystemAlterationMonitor.delay is not safely published

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • fam
    • None

    Description

      The field FilesystemAlterationMonitor.delay is read by the daemon thread but the writer and reader do not use synchronisation.

      If the delay is changed after the thread is started, any changes may not be seen by the thread (unsafe publication).

      The delay field needs to be made volatile.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: