RFR: 8311030: ResourceBundle.handleKeySet() is racy
Pavel Rappo
prappo at openjdk.org
Wed Jun 28 20:32:53 UTC 2023
On Wed, 28 Jun 2023 11:05:11 GMT, Sergey Tsypanov <stsypanov at openjdk.org> wrote:
> Double-checked locking should rely on local variable to avoid racy reads from volatile field.
While I still cannot see any malignancy in that race, the proposed change makes the code simpler to reason about and probably faster to execute. Also, the change does not seem to introduce new bugs.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14692#issuecomment-1612062693
More information about the core-libs-dev
mailing list