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

Remove the appcds/javaldr/AnonVmClassesDuringDump.java test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • b03

      In cds/appcds/javaldr/AnonVmClassesDuringDump.java, the setting of dynamicMode is incorrect. It is always false.

      public static final boolean dynamicMode =
              Boolean.getBoolean(System.getProperty("test.dynamic.cds.archive", "false"));

      The correct way should be:
             Boolean.getBoolean("test.dynamic.cds.archive")

      Or it could just be:
            CDSTestUtils.DYNAMIC_DUMP

      After correcting the setting, we noticed the behavior is the same regardless of dynamicMode, i.e. only the following check passed:
      output -> output.shouldNotMatch(pattern)

      For the last test which checks the content of the archive, there are classes in the Shared Lambda Dictionary such as java.lang.module.ModuleFinder$2$$Lambda/0x800000023
      so no point to run the test on the archive content.

      Removing the entire test.

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

              Created:
              Updated:
              Resolved: