changeset 22566:94a604f431d3

CHA with default methods is broken
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 15 Sep 2015 21:48:17 -0700
parents a7c7901367ed
children bfd5fdca1ce9
files jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotResolvedJavaMethodImpl.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotResolvedJavaMethodImpl.java	Tue Sep 15 18:13:11 2015 -0700
+++ b/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotResolvedJavaMethodImpl.java	Tue Sep 15 21:48:17 2015 -0700
@@ -379,6 +379,10 @@
             // seeing A.foo().
             return null;
         }
+        if (this.isDefault()) {
+            // CHA for default methods doesn't work and may crash the VM
+            return null;
+        }
         return runtime().getCompilerToVM().findUniqueConcreteMethod(((HotSpotResolvedObjectTypeImpl) receiver), this);
     }