hotspot/src/share/vm/c1/c1_GraphBuilder.cpp
changeset 12369 48fd3da4025c
parent 12106 5a4af5175bd3
child 12377 ae6def2813e0
--- a/hotspot/src/share/vm/c1/c1_GraphBuilder.cpp	Sun Mar 25 18:08:52 2012 -0400
+++ b/hotspot/src/share/vm/c1/c1_GraphBuilder.cpp	Thu Mar 29 22:18:56 2012 -0400
@@ -1694,7 +1694,9 @@
       // they are roughly equivalent to Object.
       ciInstanceKlass* singleton = NULL;
       if (target->holder()->nof_implementors() == 1) {
-        singleton = target->holder()->implementor(0);
+        singleton = target->holder()->implementor();
+        assert(singleton != NULL && singleton != target->holder(),
+               "just checking");
 
         assert(holder->is_interface(), "invokeinterface to non interface?");
         ciInstanceKlass* decl_interface = (ciInstanceKlass*)holder;