-
Bug
-
Resolution: Fixed
-
P4
-
None
-
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.
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.
- links to
-
Commit(master) openjdk/jdk/f8974ba7
-
Review(master) openjdk/jdk/22747