Skip to content

Commit 9b428dd

Browse files
David LeopoldsederDoug Simon
authored andcommitted
8336242: compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/SimpleDebugInfoTest.java failed assert(oopDesc::is_oop_or_null(val)) failed: bad oop found (again)
Reviewed-by: dnsimon, never
1 parent de0b504 commit 9b428dd

File tree

1 file changed

+0
-80
lines changed

1 file changed

+0
-80
lines changed

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/SimpleDebugInfoTest.java

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -200,84 +200,4 @@ public void testStackLong() {
200200
testLongOnStack(compiler);
201201
testLongInLocal(compiler);
202202
}
203-
204-
public static Class<?> objectOnStack() {
205-
return SimpleDebugInfoTest.class;
206-
}
207-
208-
private void testObjectOnStack(DebugInfoCompiler compiler) {
209-
test(compiler, getMethod("objectOnStack"), 2, JavaKind.Object);
210-
}
211-
212-
public static Class<?> objectInLocal() {
213-
Class<?> local = SimpleDebugInfoTest.class;
214-
return local;
215-
}
216-
217-
private void testObjectInLocal(DebugInfoCompiler compiler) {
218-
test(compiler, getMethod("objectInLocal"), 3, JavaKind.Object);
219-
}
220-
221-
@Test
222-
public void testConstObject() {
223-
ResolvedJavaType type = metaAccess.lookupJavaType(objectOnStack());
224-
DebugInfoCompiler compiler = (asm, values) -> {
225-
values[0] = constantReflection.asJavaClass(type);
226-
return null;
227-
};
228-
testObjectOnStack(compiler);
229-
testObjectInLocal(compiler);
230-
}
231-
232-
@Test
233-
public void testRegObject() {
234-
ResolvedJavaType type = metaAccess.lookupJavaType(objectOnStack());
235-
DebugInfoCompiler compiler = (asm, values) -> {
236-
Register reg = asm.emitLoadPointer((HotSpotConstant) constantReflection.asJavaClass(type));
237-
values[0] = reg.asValue(asm.getValueKind(JavaKind.Object));
238-
return null;
239-
};
240-
testObjectOnStack(compiler);
241-
testObjectInLocal(compiler);
242-
}
243-
244-
@Test
245-
public void testStackObject() {
246-
ResolvedJavaType type = metaAccess.lookupJavaType(objectOnStack());
247-
DebugInfoCompiler compiler = (asm, values) -> {
248-
Register reg = asm.emitLoadPointer((HotSpotConstant) constantReflection.asJavaClass(type));
249-
values[0] = asm.emitPointerToStack(reg);
250-
return null;
251-
};
252-
testObjectOnStack(compiler);
253-
testObjectInLocal(compiler);
254-
}
255-
256-
@Test
257-
public void testRegNarrowObject() {
258-
Assume.assumeTrue(config.useCompressedOops);
259-
ResolvedJavaType type = metaAccess.lookupJavaType(objectOnStack());
260-
DebugInfoCompiler compiler = (asm, values) -> {
261-
HotSpotConstant wide = (HotSpotConstant) constantReflection.asJavaClass(type);
262-
Register reg = asm.emitLoadPointer((HotSpotConstant) wide.compress());
263-
values[0] = reg.asValue(asm.narrowOopKind);
264-
return null;
265-
};
266-
testObjectOnStack(compiler);
267-
testObjectInLocal(compiler);
268-
}
269-
270-
@Test
271-
public void testStackNarrowObject() {
272-
Assume.assumeTrue(config.useCompressedOops);
273-
ResolvedJavaType type = metaAccess.lookupJavaType(objectOnStack());
274-
DebugInfoCompiler compiler = (asm, values) -> {
275-
HotSpotConstant wide = (HotSpotConstant) constantReflection.asJavaClass(type);
276-
Register reg = asm.emitLoadPointer((HotSpotConstant) wide.compress());
277-
values[0] = asm.emitNarrowPointerToStack(reg);
278-
return null;
279-
};
280-
testObjectOnStack(compiler);
281-
testObjectInLocal(compiler);
282-
}
283203
}

0 commit comments

Comments
 (0)