<i18n dev> RFR: 8311030: ResourceBundle.handleKeySet() is racy

Sergey Tsypanov stsypanov at openjdk.org
Wed Jun 28 18:53:55 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.

It'd be a benign race in case all members of `HashSet` are `final`, but they aren't, so there are no safe publication guarantees.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14692#issuecomment-1611915175


More information about the i18n-dev mailing list