Skip to content

Commit ed48e5c

Browse files
committed
8226533: JVMCI: findUniqueConcreteMethod should handle statically bindable methods directly
Backport-of: 9d6c776
1 parent 8d5b37a commit ed48e5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,10 @@ public AssumptionResult<ResolvedJavaMethod> findUniqueConcreteMethod(ResolvedJav
602602
// The type isn't known to implement the method.
603603
return null;
604604
}
605+
if (resolvedMethod.canBeStaticallyBound()) {
606+
// No assumptions are required.
607+
return new AssumptionResult<>(resolvedMethod);
608+
}
605609

606610
ResolvedJavaMethod result = resolvedMethod.uniqueConcreteMethod(this);
607611
if (result != null) {

0 commit comments

Comments
 (0)