Skip to content

Commit f545a39

Browse files
henningandersencbuescher
authored andcommitted
Avoid cache io field volatile accesses (elastic#112184)
The blob cache has an io field per region that is declared volatile, since it is originally null and then later initialized. However, during "tryRead" we do not need the volatile access. This commit changes the field to be non-volatile and use proper volatile accesses only when needed.
1 parent 8d32dc9 commit f545a39

File tree

2 files changed

+105
-63
lines changed

2 files changed

+105
-63
lines changed

0 commit comments

Comments
 (0)