-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When an object is opened, it is added to the cache right after its creation, as a consequence other threads can retrieve the object from the object cache after its creation and before additional initialization. For example, register index. This patch moves the extra initialization into an atomic operation (i.e. computeIfAbsent). As a consequence, the parameters of the first cached open will be observed by subsequent opens.
- Loading branch information
Showing
3 changed files
with
46 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters