You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2013/08/27 20:56:52 UTC
[jira] [Created] (JCI-74) FilesystemAlterationMonitor.delay is not
safely published
Sebb created JCI-74:
-----------------------
Summary: FilesystemAlterationMonitor.delay is not safely published
Key: JCI-74
URL: https://issues.apache.org/jira/browse/JCI-74
Project: Commons JCI
Issue Type: Bug
Components: fam
Affects Versions: 1.0
Reporter: Sebb
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira