|
1 | 1 | /* |
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. |
3 | 3 | * Copyright (c) 2024, Red Hat, Inc. All rights reserved. |
4 | 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 | 5 | * |
|
26 | 26 | * @test id=nocoops_nocoh |
27 | 27 | * @summary Test Loading of default archives in all configurations |
28 | 28 | * @requires vm.cds |
| 29 | + * @requires vm.cds.write.archived.java.heap |
29 | 30 | * @requires vm.bits == 64 |
30 | 31 | * @library /test/lib |
31 | 32 | * @modules java.base/jdk.internal.misc |
|
37 | 38 | * @test id=nocoops_coh |
38 | 39 | * @summary Test Loading of default archives in all configurations (requires --enable-cds-archive-coh) |
39 | 40 | * @requires vm.cds |
| 41 | + * @requires vm.cds.write.archived.java.heap |
40 | 42 | * @requires vm.bits == 64 |
41 | 43 | * @library /test/lib |
42 | 44 | * @modules java.base/jdk.internal.misc |
|
48 | 50 | * @test id=coops_nocoh |
49 | 51 | * @summary Test Loading of default archives in all configurations |
50 | 52 | * @requires vm.cds |
| 53 | + * @requires vm.cds.write.archived.java.heap |
51 | 54 | * @requires vm.bits == 64 |
52 | 55 | * @library /test/lib |
53 | 56 | * @modules java.base/jdk.internal.misc |
|
59 | 62 | * @test id=coops_coh |
60 | 63 | * @summary Test Loading of default archives in all configurations (requires --enable-cds-archive-coh) |
61 | 64 | * @requires vm.cds |
| 65 | + * @requires vm.cds.write.archived.java.heap |
62 | 66 | * @requires vm.bits == 64 |
63 | 67 | * @library /test/lib |
64 | 68 | * @modules java.base/jdk.internal.misc |
@@ -131,7 +135,7 @@ public static void main(String[] args) throws Exception { |
131 | 135 | default: throw new RuntimeException("Invalid argument " + args[0]); |
132 | 136 | } |
133 | 137 |
|
134 | | - ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder( |
| 138 | + ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder( |
135 | 139 | "-XX:" + coh + "UseCompactObjectHeaders", |
136 | 140 | "-XX:" + coops + "UseCompressedOops", |
137 | 141 | "-Xlog:cds", |
|
0 commit comments