Browse Source

fix double checked locking with volatile (#649)

pull/691/head
shenjianeng 5 years ago committed by GitHub
parent
commit
4678998351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-cloud-context/src/main/java/org/springframework/cloud/context/scope/GenericScope.java

2
spring-cloud-context/src/main/java/org/springframework/cloud/context/scope/GenericScope.java

@ -365,7 +365,7 @@ public class GenericScope implements Scope, BeanFactoryPostProcessor, @@ -365,7 +365,7 @@ public class GenericScope implements Scope, BeanFactoryPostProcessor,
private final ObjectFactory<?> objectFactory;
private Object bean;
private volatile Object bean;
private Runnable callback;

Loading…
Cancel
Save