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;
|
||||
|
||||
// Implementation
|
||||
private LinkedBlockingQueue<Object> messageQueue;
|
||||
private TaskRunnerFactory taskRunnerFactory;
|
||||
private TaskRunner taskRunner;
|
||||
private volatile LinkedBlockingQueue<Object> messageQueue;
|
||||
private volatile TaskRunnerFactory taskRunnerFactory;
|
||||
private volatile TaskRunner taskRunner;
|
||||
|
||||
// Transport State
|
||||
protected final AtomicBoolean started = new AtomicBoolean();
|
||||
|
|
Loading…
Reference in New Issue