8226533: JVMCI: findUniqueConcreteMethod should handle statically bindable methods directly
Reviewed-by: kvn, dlong
Contributed-by: Doug Simon <doug.simon@oracle.com>
--- a/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java Fri Jun 28 20:46:25 2019 +0100
+++ b/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java Fri Jun 28 16:50:14 2019 -0400
@@ -579,6 +579,10 @@
// The type isn't known to implement the method.
return null;
}
+ if (resolvedMethod.canBeStaticallyBound()) {
+ // No assumptions are required.
+ return new AssumptionResult<>(resolvedMethod);
+ }
ResolvedJavaMethod result = resolvedMethod.uniqueConcreteMethod(this);
if (result != null) {