hotspot/src/share/vm/ci/ciMethod.cpp
changeset 14391 df0a1573d5bd
parent 13728 882756847a04
child 14477 95e66ea71f71
--- a/hotspot/src/share/vm/ci/ciMethod.cpp	Thu Oct 04 14:55:57 2012 +0200
+++ b/hotspot/src/share/vm/ci/ciMethod.cpp	Tue Nov 06 15:09:37 2012 -0500
@@ -105,7 +105,7 @@
     CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops());
   }
 
-  if (InstanceKlass::cast(h_m()->method_holder())->is_linked()) {
+  if (h_m()->method_holder()->is_linked()) {
     _can_be_statically_bound = h_m()->can_be_statically_bound();
   } else {
     // Have to use a conservative value in this case.
@@ -188,7 +188,7 @@
 
   // Revert any breakpoint bytecodes in ci's copy
   if (me->number_of_breakpoints() > 0) {
-    BreakpointInfo* bp = InstanceKlass::cast(me->method_holder())->breakpoints();
+    BreakpointInfo* bp = me->method_holder()->breakpoints();
     for (; bp != NULL; bp = bp->next()) {
       if (bp->match(me)) {
         code_at_put(bp->bci(), bp->orig_bytecode());