mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-24 17:20:06 +00:00
8277343: dynamicArchive/SharedArchiveFileOption.java failed: '-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:' missing
Reviewed-by: hseigel, ccheung
This commit is contained in:
parent
2f4b5405f0
commit
db55f9272c
@ -291,7 +291,7 @@ class DynamicArchiveTestBase {
|
||||
* UseCompressedClassPointers options. Those "compressed" options were
|
||||
* enabled when the default CDS archive was built.
|
||||
*/
|
||||
private static boolean isUseSharedSpacesDisabled() {
|
||||
public static boolean isUseSharedSpacesDisabled() {
|
||||
return (WB.getBooleanVMFlag("UseSharedSpaces") == false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -180,10 +180,14 @@ public class SharedArchiveFileOption extends DynamicArchiveTestBase {
|
||||
.assertAbnormalExit("-XX:ArchiveClassesAtExit is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:");
|
||||
|
||||
testcase("A dynamic archive is already loaded when -XX:+RecordDynamicDumpInfo is specified");
|
||||
run2(null, topArchiveName,
|
||||
"-XX:+RecordDynamicDumpInfo",
|
||||
"-cp", appJar, mainClass)
|
||||
.assertAbnormalExit("-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:");
|
||||
if (isUseSharedSpacesDisabled()) {
|
||||
System.out.println("This test is not applicable when JTREG tests are executed with -Xshare:off, or if the JDK doesn't have a default archive.");
|
||||
} else {
|
||||
run2(null, topArchiveName,
|
||||
"-XX:+RecordDynamicDumpInfo",
|
||||
"-cp", appJar, mainClass)
|
||||
.assertAbnormalExit("-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:");
|
||||
}
|
||||
|
||||
testcase("-XX:+RecordDynamicDumpInfo cannot be used with -XX:ArchiveClassesAtExit");
|
||||
dump2(baseArchiveName,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user