8138896: C1: NativeGeneralJump is mixed up with NativeCall in C1 patching code

Reviewed-by: twisti, vlivanov
This commit is contained in:
Martin Doerr 2015-10-05 23:53:59 +02:00
parent 039050a9f7
commit bd35ac3342
2 changed files with 2 additions and 2 deletions

View file

@ -1163,7 +1163,7 @@ JRT_ENTRY(void, Runtime1::patch_code(JavaThread* thread, Runtime1::StubID stub_i
}
#endif
for (int i = NativeCall::instruction_size; i < *byte_count; i++) {
for (int i = NativeGeneralJump::instruction_size; i < *byte_count; i++) {
address ptr = copy_buff + i;
int a_byte = (*ptr) & 0xFF;
address dst = instr_pc + i;