mirror of https://github.com/apache/activemq.git
Fixing missing volatile on references in VMTransport to prevent a synchronization bug.
This resolves https://issues.apache.org/jira/browse/AMQ-5787
This commit is contained in:
parent
2ad1f1eaa9
commit
3769284ecd
|
@ -56,9 +56,9 @@ public class VMTransport implements Transport, Task {
|
||||||
protected final long id;
|
protected final long id;
|
||||||
|
|
||||||
// Implementation
|
// Implementation
|
||||||
private LinkedBlockingQueue<Object> messageQueue;
|
private volatile LinkedBlockingQueue<Object> messageQueue;
|
||||||
private TaskRunnerFactory taskRunnerFactory;
|
private volatile TaskRunnerFactory taskRunnerFactory;
|
||||||
private TaskRunner taskRunner;
|
private volatile TaskRunner taskRunner;
|
||||||
|
|
||||||
// Transport State
|
// Transport State
|
||||||
protected final AtomicBoolean started = new AtomicBoolean();
|
protected final AtomicBoolean started = new AtomicBoolean();
|
||||||
|
|
Loading…
Reference in New Issue