RFR: 8335274: SwitchBootstraps.ResolvedEnumLabels.resolvedEnum should be final
Jan Lahoda
jlahoda at openjdk.org
Fri Jun 28 16:41:31 UTC 2024
On Fri, 28 Jun 2024 09:33:41 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> > FWIW, there are more `@Stable` uses here: #19906
> > if you would have a moment to check that, it may be helpful. Thanks.
>
> That one looks fine: it is set outside of constructor, is intrinsically racy, and it has AFAICS the recovery paths when we read `null` out of `MappedEnumCache.generatedSwitch` or `MappedEnumCache.constantsMap`.
Thanks Aleksey!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19933#issuecomment-2197287772
More information about the core-libs-dev
mailing list