RFR: 8292499: CDS ArchivedEnumTest.java fails: object points to a static field that may be reinitialized
Calvin Cheung
ccheung at openjdk.org
Fri Aug 19 01:50:30 UTC 2022
On Thu, 18 Aug 2022 19:56:30 GMT, Ioi Lam <iklam 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.
-------------
Marked as reviewed by ccheung (Reviewer).
PR: https://git.openjdk.org/jdk/pull/9926
More information about the hotspot-runtime-dev
mailing list