Sho SHIMIZU
Committed by Thomas Vachuska

See the latest value of dispatchLoop

The field, dispatchLoop, is accessed in activate() method and the thread
where Watchdog is running. Then, different threads could access the field
and could miss the latest value.

Change-Id: Id218522f5b318fb3d05833ba57d908a1bf6d2949
...@@ -64,7 +64,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry ...@@ -64,7 +64,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry
64 private static final Event KILL_PILL = new AbstractEvent(null, 0) { 64 private static final Event KILL_PILL = new AbstractEvent(null, 0) {
65 }; 65 };
66 66
67 - private DispatchLoop dispatchLoop; 67 + private volatile DispatchLoop dispatchLoop;
68 private long maxProcessMillis = DEFAULT_EXECUTE_MS; 68 private long maxProcessMillis = DEFAULT_EXECUTE_MS;
69 69
70 // Means to detect long-running sinks 70 // Means to detect long-running sinks
......