src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/FindUniqueDefaultMethodTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/FindUniqueDefaultMethodTest.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/FindUniqueDefaultMethodTest.java

Print this page

        

*** 20,41 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.core.test; ! import jdk.vm.ci.meta.Assumptions.AssumptionResult; ! import jdk.vm.ci.meta.ResolvedJavaMethod; ! import jdk.vm.ci.meta.ResolvedJavaType; ! ! import org.junit.Ignore; ! import org.junit.Test; ! ! import org.graalvm.compiler.debug.Debug; ! import org.graalvm.compiler.debug.Debug.Scope; import org.graalvm.compiler.nodes.ReturnNode; import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; /** * This test illustrates problems and limitations with class hierarchy analysis when default methods * are involved. */ --- 20,39 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.core.test; ! import org.graalvm.compiler.debug.DebugContext; import org.graalvm.compiler.nodes.ReturnNode; import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; + import org.junit.Ignore; + import org.junit.Test; + + import jdk.vm.ci.meta.Assumptions.AssumptionResult; + import jdk.vm.ci.meta.ResolvedJavaMethod; + import jdk.vm.ci.meta.ResolvedJavaType; /** * This test illustrates problems and limitations with class hierarchy analysis when default methods * are involved. */
*** 137,151 **** assertDeepEquals(value, ret.result().asJavaConstant().asBoxedPrimitive()); } @SuppressWarnings("try") protected StructuredGraph buildGraph(final String snippet) { ! try (Scope s = Debug.scope("InstanceOfTest", getMetaAccess().lookupJavaMethod(getMethod(snippet)))) { ! StructuredGraph graph = parseEager(snippet, AllowAssumptions.YES); compile(graph.method(), graph); ! Debug.dump(Debug.BASIC_LEVEL, graph, snippet); return graph; } catch (Throwable e) { ! throw Debug.handle(e); } } } --- 135,150 ---- assertDeepEquals(value, ret.result().asJavaConstant().asBoxedPrimitive()); } @SuppressWarnings("try") protected StructuredGraph buildGraph(final String snippet) { ! DebugContext debug = getDebugContext(); ! try (DebugContext.Scope s = debug.scope("InstanceOfTest", getMetaAccess().lookupJavaMethod(getMethod(snippet)))) { ! StructuredGraph graph = parseEager(snippet, AllowAssumptions.YES, debug); compile(graph.method(), graph); ! debug.dump(DebugContext.BASIC_LEVEL, graph, snippet); return graph; } catch (Throwable e) { ! throw debug.handle(e); } } }
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/FindUniqueDefaultMethodTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File