< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/classfile/RedefineIntrinsicTest.java

Print this page
rev 56282 : [mq]: graal

*** 1,7 **** /* ! * Copyright (c) 2011, 2018, 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) 2011, 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.
*** 53,62 **** --- 53,63 ---- import org.graalvm.compiler.bytecode.BytecodeProvider; import org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins; import org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.Registration; import org.graalvm.compiler.replacements.test.ReplacementsTest; import org.graalvm.compiler.serviceprovider.JavaVersionUtil; + import org.graalvm.compiler.test.SubprocessUtil; import org.graalvm.compiler.test.SubprocessUtil.Subprocess; import org.junit.Assert; import org.junit.Test; import jdk.vm.ci.meta.ResolvedJavaMethod;
*** 114,123 **** --- 115,125 ---- if (JavaVersionUtil.JAVA_SPEC <= 8 || Boolean.getBoolean(recursionPropName)) { testHelper(); } else { List<String> vmArgs = withoutDebuggerArguments(getVMCommandLine()); vmArgs.add("-D" + recursionPropName + "=true"); + vmArgs.addAll(SubprocessUtil.getPackageOpeningOptions()); vmArgs.add("-Djdk.attach.allowAttachSelf=true"); Subprocess proc = java(vmArgs, "com.oracle.mxtool.junit.MxJUnitWrapper", getClass().getName()); if (proc.exitCode != 0) { Assert.fail(String.format("non-zero exit code %d for command:%n%s", proc.exitCode, proc)); }
< prev index next >