RFR: 8302822: Method/Field/Constructor/RecordComponent::getGenericInfo() is not thread safe

David Holmes dholmes at openjdk.org
Mon Feb 20 09:47:27 UTC 2023


On Sun, 19 Feb 2023 18:41:18 GMT, liach <duke at openjdk.org> wrote:

> 8302822: Method/Field/Constructor/RecordComponent::getGenericInfo() is not thread safe

The field needs to be volatile for these construction races to be thread-safe, otherwise no guarantee that seeing a non-null genericInfo will mean you see any writes done by the factory methods.

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

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


More information about the core-libs-dev mailing list