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

[TESTBUG] Reduce the usage of CDSTestUtils.executeAndLog()

XMLWordPrintable

    • b08

      Some CDS tests use the CDSTestUtils.createArchive() when creating the shared archive and use the CDSTestUtils.executeAndLog() when using the archive. This results in some flag used when creating the archive not being passed to the subsequent JVM which tries to load the archive and resulting in error such as "The shared archive file was created by a different version or build of HotSpot" while processing the archive. (See JDK-8210990)

      The purpose of this RFE is to reduce the usage of CDSTestUtils.executeAndLog() by making use of CDSTestUtils.run(), CDSTestUtils.createArchiveAndCheck(), etc.

      The CDSTestUtils.executeAndLog() will still be used in the following cases:
      1. internally in CDSTestUtils;
      2. test cases which use other java tools such as jcmd;
      3. test cases which start java processes from a non-standard location.

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

              Created:
              Updated:
              Resolved: