RFR: 8293197: Avoid double racy reads from non-volatile fields in SharedSecrets

Alan Bateman alanb at openjdk.org
Sat Sep 3 07:26:47 UTC 2022


On Tue, 30 Aug 2022 07:10:36 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> After integration of [JDK-8259021](https://bugs.openjdk.org/browse/JDK-8259021) a few more fields were added to `SharedSecrets` class. It make sense to update their reading code to use the same idiom.

Surprising that the additions since JDK-8259021 didn't follow the same pattern but I think some of these were in other repos at the time.

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

Marked as reviewed by alanb (Reviewer).

PR: https://git.openjdk.org/jdk/pull/10076



More information about the security-dev mailing list