You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elements = newLinkedList<InjectionMetadata.InjectedElement>();
parseFields(clazz, annotion, elements);
parseMethods(clazz, annotion, elements);
metadata = newInjectionMetadata(clazz, elements);
this.injectionMetadataCache.put(clazz, metadata);
}
Double-Checked Locking is widely cited and used as an efficient method for implementing lazy initialization in a multithreaded environment.
Unfortunately, it will not work reliably in a platform independent way when implemented in Java, without additional synchronization.
Declare a volatile local variable metadata offers a much more elegant solution
The text was updated successfully, but these errors were encountered:
Jprotobuf-rpc-socket/jprotobuf-rpc-core-spring/src/main/java/com/baidu/jprotobuf/pbrpc/spring/annotation/CommonAnnotationBeanPostProcessor.java
Lines 250 to 261 in bab1e2f
Double-Checked Locking is widely cited and used as an efficient method for implementing lazy initialization in a multithreaded environment.
Unfortunately, it will not work reliably in a platform independent way when implemented in Java, without additional synchronization.
Declare a volatile local variable metadata offers a much more elegant solution
The text was updated successfully, but these errors were encountered: