RFR: 8286849: Use @Stable for generic repositories
liach
duke at openjdk.org
Fri Jul 15 08:49:51 UTC 2022
On Tue, 17 May 2022 04:40:50 GMT, liach <duke at openjdk.org> wrote:
> Generic repositories, the implementation detail for generic information in core reflection, can be updated to use the `@Stable` annotation to replace their `volatile` access. Their existing accessor code is already safe, reading the cache fields only once.
>
> In addition, fixed potentially non-thread-safe `genericInfo` access in `Method`, `Field`, and `RecordComponent`.
I should probably split the patch fixing thread safety of some generic information container off.
-------------
PR: https://git.openjdk.org/jdk/pull/8742
More information about the core-libs-dev
mailing list