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 26 * @bug 8136421 27 * @requires vm.jvmci 28 * @library /test/lib / 29 * @modules java.base/jdk.internal.misc 30 * @modules jdk.internal.vm.ci/jdk.vm.ci.runtime 31 * @run main/othervm -XX:+UnlockExperimentalVMOptions 32 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true 33 * -XX:+EnableJVMCI 34 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 35 * @run main/othervm -XX:+UnlockExperimentalVMOptions 36 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false 37 * -XX:-EnableJVMCI 38 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 39 * @run main/othervm -XX:+UnlockExperimentalVMOptions 40 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true 41 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true 42 * -XX:+EnableJVMCI 43 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 44 * @run main/othervm -XX:+UnlockExperimentalVMOptions 45 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false 46 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true 47 * -XX:-EnableJVMCI 48 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 49 50 */ 51 52 package compiler.jvmci; 53 54 import jdk.test.lib.Asserts; 55 import jdk.vm.ci.runtime.JVMCI; 56 57 public class JVM_GetJVMCIRuntimeTest implements Runnable { 58 private static final boolean IS_POSITIVE = Boolean.getBoolean( 59 "compiler.jvmci.JVM_GetJVMCIRuntimeTest.positive"); 60 private static final boolean IN_THREAD = Boolean.getBoolean( 61 "compiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded"); 62 | 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 26 * @bug 8136421 27 * @requires vm.jvmci 28 * @library /test/lib / 29 * @modules java.base/jdk.internal.misc 30 * @modules jdk.internal.vm.ci/jdk.vm.ci.runtime 31 * @run main/othervm -XX:+UnlockExperimentalVMOptions 32 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true 33 * -XX:+EnableJVMCI -Djvmci.Compiler=null 34 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 35 * @run main/othervm -XX:+UnlockExperimentalVMOptions 36 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false 37 * -XX:-EnableJVMCI 38 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 39 * @run main/othervm -XX:+UnlockExperimentalVMOptions 40 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true 41 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true 42 * -XX:+EnableJVMCI -Djvmci.Compiler=null 43 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 44 * @run main/othervm -XX:+UnlockExperimentalVMOptions 45 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false 46 * -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true 47 * -XX:-EnableJVMCI 48 * compiler.jvmci.JVM_GetJVMCIRuntimeTest 49 50 */ 51 52 package compiler.jvmci; 53 54 import jdk.test.lib.Asserts; 55 import jdk.vm.ci.runtime.JVMCI; 56 57 public class JVM_GetJVMCIRuntimeTest implements Runnable { 58 private static final boolean IS_POSITIVE = Boolean.getBoolean( 59 "compiler.jvmci.JVM_GetJVMCIRuntimeTest.positive"); 60 private static final boolean IN_THREAD = Boolean.getBoolean( 61 "compiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded"); 62 |