-
Enhancement
-
Resolution: Fixed
-
P4
-
18
-
b16
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8314917 | 17.0.10-oracle | Adithya Haradi Gopal | P4 | Resolved | Fixed | b01 |
JDK-8316874 | 17.0.10 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
The VerifyArchivedFields option was added in JDK-8253081, to make sure we can run the full GC even when the p->klass() of some archived heap object p is not yet loaded into the system dictionary. See https://github.com/iklam/jdk/blame/eb0bba7aa2afff7cabc44caed28269f9a60f06be/src/hotspot/share/cds/heapShared.cpp#L670
VerifyArchivedFields defines two levels of verification:
(a) Basic verification with VM_Verify (no side effects)
(b) Detailed verification by forcing a GC (with side effects)
Currently, (a) is enabled by default, and we don't have a test case for (b).
=========================
Proposed improvements:
[1] (a) causes fastdebug build to slow down a few tens of ms for G1 (or more for other GCs such as Serial). It's not necessary to enable it for every single test in jtreg. It should be enough to enable (a) only for the CDS test cases.
[2] Add a new test case for (b)
VerifyArchivedFields defines two levels of verification:
(a) Basic verification with VM_Verify (no side effects)
(b) Detailed verification by forcing a GC (with side effects)
Currently, (a) is enabled by default, and we don't have a test case for (b).
=========================
Proposed improvements:
[1] (a) causes fastdebug build to slow down a few tens of ms for G1 (or more for other GCs such as Serial). It's not necessary to enable it for every single test in jtreg. It should be enough to enable (a) only for the CDS test cases.
[2] Add a new test case for (b)
- backported by
-
JDK-8314917 Improve testing with VM option VerifyArchivedFields
-
- Resolved
-
-
JDK-8316874 Improve testing with VM option VerifyArchivedFields
-
- Resolved
-
- duplicates
-
JDK-8266331 Add new test case for -XX:+VerifyArchivedFields
-
- Closed
-
- relates to
-
JDK-8253081 G1 fails on stale objects in archived module graph in Open Archive regions
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/ef0fc3ea
-
Commit openjdk/jdk/b9829044
-
Review openjdk/jdk17u-dev/1772
-
Review openjdk/jdk/5514
(3 links to)