src/cpu/x86/vm/relocInfo_x86.cpp

changeset 5314
7875ea94bea5
parent 4781
589aa23334ea
child 5528
740e263c80c6
     1.1 --- a/src/cpu/x86/vm/relocInfo_x86.cpp	Fri Jun 21 00:59:12 2013 -0700
     1.2 +++ b/src/cpu/x86/vm/relocInfo_x86.cpp	Mon Jun 24 11:53:54 2013 -0700
     1.3 @@ -177,30 +177,6 @@
     1.4    return *pd_address_in_code();
     1.5  }
     1.6  
     1.7 -int Relocation::pd_breakpoint_size() {
     1.8 -  // minimum breakpoint size, in short words
     1.9 -  return NativeIllegalInstruction::instruction_size / sizeof(short);
    1.10 -}
    1.11 -
    1.12 -void Relocation::pd_swap_in_breakpoint(address x, short* instrs, int instrlen) {
    1.13 -  Untested("pd_swap_in_breakpoint");
    1.14 -  if (instrs != NULL) {
    1.15 -    assert(instrlen * sizeof(short) == NativeIllegalInstruction::instruction_size, "enough instrlen in reloc. data");
    1.16 -    for (int i = 0; i < instrlen; i++) {
    1.17 -      instrs[i] = ((short*)x)[i];
    1.18 -    }
    1.19 -  }
    1.20 -  NativeIllegalInstruction::insert(x);
    1.21 -}
    1.22 -
    1.23 -
    1.24 -void Relocation::pd_swap_out_breakpoint(address x, short* instrs, int instrlen) {
    1.25 -  Untested("pd_swap_out_breakpoint");
    1.26 -  assert(NativeIllegalInstruction::instruction_size == sizeof(short), "right address unit for update");
    1.27 -  NativeInstruction* ni = nativeInstruction_at(x);
    1.28 -  *(short*)ni->addr_at(0) = instrs[0];
    1.29 -}
    1.30 -
    1.31  void poll_Relocation::fix_relocation_after_move(const CodeBuffer* src, CodeBuffer* dest) {
    1.32  #ifdef _LP64
    1.33    if (!Assembler::is_polling_page_far()) {

mercurial