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.