11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test 8232069 for ZGC
26 * @requires vm.cds
27 * @requires vm.bits == 64
28 * @requires vm.gc.Z
29 * @requires vm.gc.Serial
30 * @requires vm.gc == null
31 * @comment Graal does not support ZGC
32 * @requires !vm.graal.enabled
33 * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
34 * @compile test-classes/Hello.java
35 * @run driver TestZGCWithCDS
36 */
37
38 import jdk.test.lib.Platform;
39 import jdk.test.lib.process.OutputAnalyzer;
40
41 public class TestZGCWithCDS {
42 public final static String HELLO = "Hello World";
43 public final static String UNABLE_TO_USE_ARCHIVE = "Unable to use shared archive.";
44 public final static String ERR_MSG = "The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.";
45 public static void main(String... args) throws Exception {
46 String helloJar = JarBuilder.build("hello", "Hello");
47 System.out.println("0. Dump with ZGC");
48 OutputAnalyzer out = TestCommon
49 .dump(helloJar,
50 new String[] {"Hello"},
51 "-XX:+UseZGC",
52 "-Xlog:cds");
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test 8232069 for ZGC
26 * @requires vm.cds
27 * @requires vm.bits == 64
28 * @requires vm.gc.Z
29 * @requires vm.gc.Serial
30 * @requires vm.gc == null
31 * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
32 * @compile test-classes/Hello.java
33 * @run driver TestZGCWithCDS
34 */
35
36 import jdk.test.lib.Platform;
37 import jdk.test.lib.process.OutputAnalyzer;
38
39 public class TestZGCWithCDS {
40 public final static String HELLO = "Hello World";
41 public final static String UNABLE_TO_USE_ARCHIVE = "Unable to use shared archive.";
42 public final static String ERR_MSG = "The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.";
43 public static void main(String... args) throws Exception {
44 String helloJar = JarBuilder.build("hello", "Hello");
45 System.out.println("0. Dump with ZGC");
46 OutputAnalyzer out = TestCommon
47 .dump(helloJar,
48 new String[] {"Hello"},
49 "-XX:+UseZGC",
50 "-Xlog:cds");
|