Skip to content

Commit

Permalink
Skip a volatile read.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 663089904
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Aug 15, 2024
1 parent b2a38a7 commit ca0c631
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static ExtensionRegistryLite getEmptyRegistry() {
synchronized (ExtensionRegistryLite.class) {
result = emptyRegistry;
if (result == null) {
result = emptyRegistry = ExtensionRegistryFactory.createEmpty();
emptyRegistry = result = ExtensionRegistryFactory.createEmpty();
}
}
}
Expand Down

0 comments on commit ca0c631

Please sign in to comment.