diff src/share/vm/graal/graalCompilerToVM.cpp @ 6387:d44835610b52

Merge.
author Doug Simon <doug.simon@oracle.com>
date Thu, 13 Sep 2012 17:45:04 +0200
parents abeeb57b655d c61ce6bac1df
children 45f682f7fea8
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp	Thu Sep 13 17:43:18 2012 +0200
+++ b/src/share/vm/graal/graalCompilerToVM.cpp	Thu Sep 13 17:45:04 2012 +0200
@@ -865,6 +865,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();