RFR: 8292499: CDS ArchivedEnumTest.java fails: object points to a static field that may be reinitialized
Ioi Lam
iklam at openjdk.org
Fri Aug 19 02:51:30 UTC 2022
On Fri, 19 Aug 2022 01:47:16 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
>> Plrease review this trivial PR:
>>
>> The self-diagnostic test in CDS is too strict. `AccessFlag$Location::EMPTY_SET` is the same archived object as `ImmutableCollections::EMPTY_SET`, so at runtime we can guarantee the object equality of these two static fields.
>>
>> This PR fixes the immediate problem, so that with `java -Xshare:dump` you won't see spurious warning messages. I am working on a more comprehensive fix in [JDK-8292635](https://bugs.openjdk.org/browse/JDK-8292635)
>
> LGTM. I've tried this patch and it works.
Thanks @calvinccheung and @dholmes-ora for the review.
-------------
PR: https://git.openjdk.org/jdk/pull/9926
More information about the hotspot-runtime-dev
mailing list