diff src/share/vm/graal/graalCompilerToVM.cpp @ 6380:a718f153b9f2

Merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Thu, 13 Sep 2012 10:45:17 +0200
parents cc402f4396f4 ad97777056ec
children c61ce6bac1df
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp	Wed Sep 12 23:50:52 2012 +0200
+++ b/src/share/vm/graal/graalCompilerToVM.cpp	Thu Sep 13 10:45:17 2012 +0200
@@ -947,6 +947,7 @@
 
   methodOop method = getMethodFromHotSpotMethod(hotspot_method);
   assert(!instanceKlass::cast(method->method_holder())->is_interface(), "vtableEntryOffset cannot be called for interface methods");
+  assert(instanceKlass::cast(method->method_holder())->is_linked(), "vtableEntryOffset cannot be called is holder is not linked");
 
   // get entry offset in words
   int vtable_entry_offset = instanceKlass::vtable_start_offset() + method->vtable_index() * vtableEntry::size();