Skip to content

Commit a2723d9

Browse files
author
Matias Saavedra Silva
committed
8345347: Test runtime/cds/TestDefaultArchiveLoading.java should accept VM flags or be marked as flagless
Reviewed-by: lmesnik, stefank, ccheung
1 parent ae1892f commit a2723d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/hotspot/jtreg/runtime/cds/TestDefaultArchiveLoading.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2024, Red Hat, Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -26,6 +26,7 @@
2626
* @test id=nocoops_nocoh
2727
* @summary Test Loading of default archives in all configurations
2828
* @requires vm.cds
29+
* @requires vm.cds.write.archived.java.heap
2930
* @requires vm.bits == 64
3031
* @library /test/lib
3132
* @modules java.base/jdk.internal.misc
@@ -37,6 +38,7 @@
3738
* @test id=nocoops_coh
3839
* @summary Test Loading of default archives in all configurations (requires --enable-cds-archive-coh)
3940
* @requires vm.cds
41+
* @requires vm.cds.write.archived.java.heap
4042
* @requires vm.bits == 64
4143
* @library /test/lib
4244
* @modules java.base/jdk.internal.misc
@@ -48,6 +50,7 @@
4850
* @test id=coops_nocoh
4951
* @summary Test Loading of default archives in all configurations
5052
* @requires vm.cds
53+
* @requires vm.cds.write.archived.java.heap
5154
* @requires vm.bits == 64
5255
* @library /test/lib
5356
* @modules java.base/jdk.internal.misc
@@ -59,6 +62,7 @@
5962
* @test id=coops_coh
6063
* @summary Test Loading of default archives in all configurations (requires --enable-cds-archive-coh)
6164
* @requires vm.cds
65+
* @requires vm.cds.write.archived.java.heap
6266
* @requires vm.bits == 64
6367
* @library /test/lib
6468
* @modules java.base/jdk.internal.misc
@@ -131,7 +135,7 @@ public static void main(String[] args) throws Exception {
131135
default: throw new RuntimeException("Invalid argument " + args[0]);
132136
}
133137

134-
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(
138+
ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder(
135139
"-XX:" + coh + "UseCompactObjectHeaders",
136140
"-XX:" + coops + "UseCompressedOops",
137141
"-Xlog:cds",

0 commit comments

Comments
 (0)