Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8306059

improve the reliability of TestSerialGCWithCDS.java and ArchiveRelocationTest.java tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b19

        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.

              ccheung Calvin Cheung
              ccheung Calvin Cheung
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: