RFR: 8281678: appcds/dynamicArchive/ArchiveConsistency.java fails after JDK-8279997
Ioi Lam
iklam at openjdk.java.net
Mon Feb 14 17:23:09 UTC 2022
On Mon, 14 Feb 2022 12:57:48 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Sorry but can you explain why -Xshare:off causes these subtests to fail. Don't they launch their own JVM with the desired flags?
The test case deletes `baseArchiveName` and then try to use the `-XX:+AutoCreateSharedArchive` flag, etc, to trigger a dynamic dump, which usually will fail (because the base archive doesn't exist) and print out the expected warning.
However, when `-vmoption:-Xshare:off` is specified, `isUseSharedSpacesDisabled()` returns true, and the `run` method will internally recreated a base archive. This behavior is intended to make all the tests in the `dynamicArchive/` subdirectory work even if `-Xshare:off` is specified, but this would cause the two newly added test cases to fail.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7457
More information about the hotspot-runtime-dev
mailing list