hotspot/src/cpu/ppc/vm/vtableStubs_ppc_64.cpp
changeset 22843 b245fac3b6a4
parent 22824 28258dd5cb2e
child 22852 1063026e8cee
--- a/hotspot/src/cpu/ppc/vm/vtableStubs_ppc_64.cpp	Thu Nov 07 11:51:53 2013 +0100
+++ b/hotspot/src/cpu/ppc/vm/vtableStubs_ppc_64.cpp	Thu Nov 07 11:47:11 2013 +0100
@@ -255,10 +255,11 @@
   if (TraceJumps || DebugVtables || CountCompiledCalls || VerifyOops) {
     return 1000;
   } else {
+    int decode_klass_size = MacroAssembler::instr_size_for_decode_klass_not_null();
     if (is_vtable_stub) {
-      return 20 + 16 + 8;    // Plain + (cOops & Traps) + safety
+      return 20 + decode_klass_size +  8 + 8;   // Plain + cOops + Traps + safety
     } else {
-      return 16 + 96;
+      return 96 + decode_klass_size + 12 + 8;   // Plain + cOops + Traps + safety
     }
   }
 }