--- old/src/cpu/sparc/vm/sharedRuntime_sparc.cpp 2016-02-18 15:25:02.053869785 -0800 +++ new/src/cpu/sparc/vm/sharedRuntime_sparc.cpp 2016-02-18 15:25:01.885858020 -0800 @@ -323,6 +323,16 @@ return size > 8; } +size_t SharedRuntime::trampoline_size() { + return 40; +} + +void SharedRuntime::generate_trampoline(MacroAssembler *masm, address destination) { + __ set((intptr_t)destination, G3_scratch); + __ JMP(G3_scratch, 0); + __ delayed()->nop(); +} + // The java_calling_convention describes stack locations as ideal slots on // a frame with no abi restrictions. Since we must observe abi restrictions // (like the placement of the register window) the slots must be biased by