# HG changeset patch # User Doug Simon # Date 1444923042 -7200 # Node ID ceca35d52380507b1d487e71bf267ef5ecc90661 # Parent 2935e7fbd941d487513c60b875d9fc737674afdd removed ununsed code diff -r 2935e7fbd941 -r ceca35d52380 src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp --- a/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp Thu Oct 15 13:57:24 2015 +0200 +++ b/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp Thu Oct 15 17:30:42 2015 +0200 @@ -90,10 +90,6 @@ } } -void CodeInstaller::pd_relocate_CodeBlob(CodeBlob* cb, NativeInstruction* inst) { - fatal("CodeInstaller::pd_relocate_CodeBlob - sparc unimp"); -} - void CodeInstaller::pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination) { address pc = (address) inst; if (inst->is_call()) { diff -r 2935e7fbd941 -r ceca35d52380 src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp --- a/src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp Thu Oct 15 13:57:24 2015 +0200 +++ b/src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp Thu Oct 15 17:30:42 2015 +0200 @@ -115,16 +115,6 @@ TRACE_jvmci_3("relocating at %p/%p with destination at %p (%d)", pc, operand, dest, data_offset); } -void CodeInstaller::pd_relocate_CodeBlob(CodeBlob* cb, NativeInstruction* inst) { - if (cb->is_nmethod()) { - nmethod* nm = (nmethod*) cb; - nativeJump_at((address)inst)->set_jump_destination(nm->verified_entry_point()); - } else { - nativeJump_at((address)inst)->set_jump_destination(cb->code_begin()); - } - _instructions->relocate((address)inst, runtime_call_Relocation::spec(), Assembler::call32_operand); -} - void CodeInstaller::pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination) { address pc = (address) inst; if (inst->is_call()) { diff -r 2935e7fbd941 -r ceca35d52380 src/share/vm/jvmci/jvmciCodeInstaller.hpp --- a/src/share/vm/jvmci/jvmciCodeInstaller.hpp Thu Oct 15 13:57:24 2015 +0200 +++ b/src/share/vm/jvmci/jvmciCodeInstaller.hpp Thu Oct 15 17:30:42 2015 +0200 @@ -96,7 +96,6 @@ void pd_patch_OopConstant(int pc_offset, Handle& constant); void pd_patch_MetaspaceConstant(int pc_offset, Handle& constant); void pd_patch_DataSectionReference(int pc_offset, int data_offset); - void pd_relocate_CodeBlob(CodeBlob* cb, NativeInstruction* inst); void pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination); void pd_relocate_JavaMethod(oop method, jint pc_offset); void pd_relocate_poll(address pc, jint mark);