Integrated: 8292499: CDS ArchivedEnumTest.java fails: object points to a static field that may be reinitialized
Ioi Lam
iklam at openjdk.org
Fri Aug 19 03:09:39 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)
This pull request has now been integrated.
Changeset: 964aac28
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/964aac28fe4a33f9e86cc07895a7ff4cdbaec3e6
Stats: 6 lines in 2 files changed: 4 ins; 2 del; 0 mod
8292499: CDS ArchivedEnumTest.java fails: object points to a static field that may be reinitialized
Reviewed-by: dholmes, ccheung
-------------
PR: https://git.openjdk.org/jdk/pull/9926
More information about the hotspot-runtime-dev
mailing list