1.1 --- a/src/share/vm/c1/c1_Runtime1.cpp Sat Jan 06 16:30:58 2018 +0800 1.2 +++ b/src/share/vm/c1/c1_Runtime1.cpp Thu May 24 19:49:50 2018 +0800 1.3 @@ -979,27 +979,9 @@ 1.4 1.5 address stub_location = caller_frame.pc() + PatchingStub::patch_info_offset(); 1.6 1.7 -#if defined(MIPS32) && defined(_LP64) 1.8 -/* Jin: In MIPS64, byte_skip is much larger than that in X86. It can not be contained in a byte: 1.9 - * int bc = 0x20; 1.10 - * int bs = 0x190; 1.11 - * int bi = 0x1b0; 1.12 - * 1.13 - * To minimize the modification of share codes, the values are decreased 4 times when generated. 1.14 - * See [mips/c1_CodeStubs_mips.cpp 307] PatchingStub::emit_code(). 1.15 - */ 1.16 - int bc = *(unsigned char*) (stub_location - 1) * 4; 1.17 - int bs = *(unsigned char*) (stub_location - 2) * 4; 1.18 - int bi = *(unsigned char*) (stub_location - 3) * 4; 1.19 - 1.20 - int *byte_count = &bc; 1.21 - int *byte_skip = &bs; 1.22 - int *being_initialized_entry_offset = &bi; 1.23 -#else 1.24 unsigned char* byte_count = (unsigned char*) (stub_location - 1); 1.25 unsigned char* byte_skip = (unsigned char*) (stub_location - 2); 1.26 unsigned char* being_initialized_entry_offset = (unsigned char*) (stub_location - 3); 1.27 -#endif 1.28 address copy_buff = stub_location - *byte_skip - *byte_count; 1.29 address being_initialized_entry = stub_location - *being_initialized_entry_offset; 1.30 1.31 @@ -1017,7 +999,7 @@ 1.32 map->print(); 1.33 tty->cr(); 1.34 1.35 - Disassembler::decode(copy_buff, copy_buff + *byte_count, tty); 1.36 + Disassembler::decode(copy_buff - *byte_count, copy_buff + *byte_count, tty); 1.37 } 1.38 // depending on the code below, do_patch says whether to copy the patch body back into the nmethod 1.39 bool do_patch = true;