RFR: 8292499: CDS ArchivedEnumTest.java fails: object points to a static field that may be reinitialized
Ioi Lam
iklam at openjdk.org
Thu Aug 18 22:34:49 UTC 2022
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)
-------------
Commit messages:
- removed problem list
- Merge branch 'master' of https://github.com/openjdk/jdk into 8292499-ArchivedEnumTest-failure
- 8292499: CDS ArchivedEnumTest.java fails: object points to a static field that may be reinitialized
Changes: https://git.openjdk.org/jdk/pull/9926/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9926&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8292499
Stats: 6 lines in 2 files changed: 4 ins; 2 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/9926.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9926/head:pull/9926
PR: https://git.openjdk.org/jdk/pull/9926
More information about the hotspot-runtime-dev
mailing list