Add volatile on destroyed filed ensure visibility (#13061)
Co-authored-by: ningle <xxuziheng@163.com> Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
This commit is contained in:
parent
f2dbc84cac
commit
edaaa16121
|
|
@ -87,7 +87,7 @@ public abstract class AbstractInvoker<T> implements Invoker<T> {
|
|||
/**
|
||||
* {@link Node} destroy
|
||||
*/
|
||||
private boolean destroyed = false;
|
||||
private volatile boolean destroyed = false;
|
||||
|
||||
/**
|
||||
* Whether set future to Thread Local when invocation mode is sync
|
||||
|
|
|
|||
Loading…
Reference in New Issue