-
Bug
-
Resolution: Fixed
-
P4
-
21
-
b19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8307273 | 20u-cpu | Ivan Bereziuk | P4 | Resolved | Fixed | master |
The TestSerialGCWithCDS.java test contains the following check:
if (out.getOutput().contains("Trying to map heap") || out.getOutput().contains("Loaded heap")) {
// The native data in the RO/RW regions have been relocated. If the CDS heap is
// mapped/loaded, we must patch all the native pointers. (CDS heap is
// not supported on all platforms)
out.shouldContain("Patching native pointers in heap region");
}
However, it is possible for the archive to be mapped to the requested address even if ArchiveRelocationMode=1.
Similar issue may also be in the ArchiveRelocationTest.java test.
if (out.getOutput().contains("Trying to map heap") || out.getOutput().contains("Loaded heap")) {
// The native data in the RO/RW regions have been relocated. If the CDS heap is
// mapped/loaded, we must patch all the native pointers. (CDS heap is
// not supported on all platforms)
out.shouldContain("Patching native pointers in heap region");
}
However, it is possible for the archive to be mapped to the requested address even if ArchiveRelocationMode=1.
Similar issue may also be in the ArchiveRelocationTest.java test.
- backported by
-
JDK-8307273 improve the reliability of TestSerialGCWithCDS.java and ArchiveRelocationTest.java tests
- Resolved