< prev index next >
src/hotspot/cpu/ppc/compiledIC_ppc.cpp
Print this page
*** 176,194 ****
// Creation also verifies the object.
NativeMovConstReg* method_holder = nativeMovConstReg_at(stub + IC_pos_in_java_to_interp_stub);
NativeJump* jump = nativeJump_at(method_holder->next_instruction_address());
! #ifdef ASSERT
! // read the value once
! volatile intptr_t data = method_holder->data();
! volatile address destination = jump->jump_destination();
! assert(data == 0 || data == (intptr_t)callee(),
! "a) MT-unsafe modification of inline cache");
! assert(destination == (address)-1 || destination == entry,
! "b) MT-unsafe modification of inline cache");
! #endif
// Update stub.
method_holder->set_data((intptr_t)callee());
jump->set_jump_destination(entry);
--- 176,186 ----
// Creation also verifies the object.
NativeMovConstReg* method_holder = nativeMovConstReg_at(stub + IC_pos_in_java_to_interp_stub);
NativeJump* jump = nativeJump_at(method_holder->next_instruction_address());
! verify_mt_safe(callee, entry, method_holder, jump);
// Update stub.
method_holder->set_data((intptr_t)callee());
jump->set_jump_destination(entry);
< prev index next >