< prev index next >
test/compiler/jvmci/errors/TestInvalidDebugInfo.java
Print this page
rev 9327 : 8142387: Various JVMCI tests fail on unexpected exception
rev 9280 : 8139589: [JVMCI] throw exceptions in faulty code installation operations
Reviewed-by: twisti
Contributed-by: Roland Schatz <roland.schatz@oracle.com>
@@ -23,11 +23,11 @@
/**
* @test
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
* @compile CodeInstallerTest.java
- * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI compiler.jvmci.errors.TestInvalidDebugInfo
+ * @run junit/othervm -da:jdk.vm.ci... -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI compiler.jvmci.errors.TestInvalidDebugInfo
*/
package compiler.jvmci.errors;
import static jdk.vm.ci.code.CompilationResult.Infopoint;
@@ -66,11 +66,11 @@
private void test(VirtualObject[] vobj, JavaValue[] values, JavaKind[] slotKinds, int locals, int stack, int locks) {
BytecodeFrame frame = new BytecodeFrame(null, dummyMethod, 0, false, false, values, slotKinds, locals, stack, locks);
DebugInfo info = new DebugInfo(frame, vobj);
info.setReferenceMap(new HotSpotReferenceMap(new Location[0], new Location[0], new int[0], 8));
- CompilationResult result = new CompilationResult();
+ CompilationResult result = createEmptyCompilationResult();
result.addInfopoint(new Infopoint(0, info, InfopointReason.SAFEPOINT));
installCode(result);
}
@Test(expected = NullPointerException.class)
< prev index next >