--- old/src/hotspot/share/c1/c1_Runtime1.cpp 2020-05-01 02:25:55.288029657 -0700 +++ new/src/hotspot/share/c1/c1_Runtime1.cpp 2020-05-01 02:25:54.960023348 -0700 @@ -242,7 +242,7 @@ case fpu2long_stub_id: case unwind_exception_id: case counter_overflow_id: -#if defined(SPARC) || defined(PPC32) +#if defined(PPC32) case handle_exception_nofpu_id: // Unused on sparc #endif expect_oop_map = false; @@ -1133,7 +1133,7 @@ ShouldNotReachHere(); } -#if defined(SPARC) || defined(PPC32) +#if defined(PPC32) if (load_klass_or_mirror_patch_id || stub_id == Runtime1::load_appendix_patching_id) { // Update the location in the nmethod with the proper @@ -1224,13 +1224,6 @@ RelocIterator iter(nm, (address)instr_pc, (address)(instr_pc + 1)); relocInfo::change_reloc_info_for_address(&iter, (address) instr_pc, relocInfo::none, rtype); -#ifdef SPARC - // Sparc takes two relocations for an metadata so update the second one. - address instr_pc2 = instr_pc + NativeMovConstReg::add_offset; - RelocIterator iter2(nm, instr_pc2, instr_pc2 + 1); - relocInfo::change_reloc_info_for_address(&iter2, (address) instr_pc2, - relocInfo::none, rtype); -#endif #ifdef PPC32 { address instr_pc2 = instr_pc + NativeMovConstReg::lo_offset; RelocIterator iter2(nm, instr_pc2, instr_pc2 + 1);