< prev index next >
test/hotspot/jtreg/compiler/aot/SharedUsageTest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 29,39 ****
* @build compiler.aot.SharedUsageTest
* compiler.aot.AotCompiler
* @run driver compiler.aot.AotCompiler -libname libSharedUsageTest.so
* -class compiler.aot.SharedUsageTest
* -extraopt -XX:-UseCompressedOops
! * @run main/othervm -XX:+UseAOT -XX:AOTLibrary=./libSharedUsageTest.so
* -XX:-UseCompressedOops
* -Dcompiler.aot.SharedUsageTest.parent=true
* compiler.aot.SharedUsageTest
* @summary check if .so can be successfully shared with 2 java processes
*/
--- 29,40 ----
* @build compiler.aot.SharedUsageTest
* compiler.aot.AotCompiler
* @run driver compiler.aot.AotCompiler -libname libSharedUsageTest.so
* -class compiler.aot.SharedUsageTest
* -extraopt -XX:-UseCompressedOops
! * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseAOT
! * -XX:AOTLibrary=./libSharedUsageTest.so
* -XX:-UseCompressedOops
* -Dcompiler.aot.SharedUsageTest.parent=true
* compiler.aot.SharedUsageTest
* @summary check if .so can be successfully shared with 2 java processes
*/
*** 60,70 ****
A respective message is triggered by PrintAOT option. */
CommandLineOptionTest.verifyJVMStartup(
new String[]{"libSharedUsageTest.so aot library",
HELLO_MSG}, null, "Unexpected exit code",
"Unexpected output", ExitCode.OK, ADD_TEST_VM_OPTION,
! "-XX:+UseAOT", "-XX:+PrintAOT",
"-Dtest.jdk=" + Utils.TEST_JDK,
"-XX:AOTLibrary=./libSharedUsageTest.so",
SharedUsageTest.class.getName());
Asserts.assertFalse(shouldBeFalseInParent, "A static member got "
+ "unexpectedly changed");
--- 61,71 ----
A respective message is triggered by PrintAOT option. */
CommandLineOptionTest.verifyJVMStartup(
new String[]{"libSharedUsageTest.so aot library",
HELLO_MSG}, null, "Unexpected exit code",
"Unexpected output", ExitCode.OK, ADD_TEST_VM_OPTION,
! "-XX:+UnlockExperimentalVMOptions", "-XX:+UseAOT", "-XX:+PrintAOT",
"-Dtest.jdk=" + Utils.TEST_JDK,
"-XX:AOTLibrary=./libSharedUsageTest.so",
SharedUsageTest.class.getName());
Asserts.assertFalse(shouldBeFalseInParent, "A static member got "
+ "unexpectedly changed");
< prev index next >