-
Notifications
You must be signed in to change notification settings - Fork 295
Open
Description
Priam/priam/src/main/java/com/netflix/priam/aws/S3CrossAccountFileSystem.java
Lines 65 to 68 in a78b203
if (this.s3Client == null) { | |
synchronized (this) { | |
if (this.s3Client == null) { |
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.
Metadata
Metadata
Assignees
Labels
No labels