Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 72d3f61

Browse files
lewurmshipilev
authored andcommitted
8326974: ODR violation in macroAssembler_aarch64.cpp
Backport-of: b972997af76a506ffd79ee8c6043e7a8db836b33
1 parent bb313b5 commit 72d3f61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,13 @@ static bool offset_for(uint32_t insn1, uint32_t insn2, ptrdiff_t &byte_offset) {
390390
return false;
391391
}
392392

393-
class Decoder : public RelocActions {
394-
virtual reloc_insn adrpMem() { return &Decoder::adrpMem_impl; }
395-
virtual reloc_insn adrpAdd() { return &Decoder::adrpAdd_impl; }
396-
virtual reloc_insn adrpMovk() { return &Decoder::adrpMovk_impl; }
393+
class AArch64Decoder : public RelocActions {
394+
virtual reloc_insn adrpMem() { return &AArch64Decoder::adrpMem_impl; }
395+
virtual reloc_insn adrpAdd() { return &AArch64Decoder::adrpAdd_impl; }
396+
virtual reloc_insn adrpMovk() { return &AArch64Decoder::adrpMovk_impl; }
397397

398398
public:
399-
Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
399+
AArch64Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
400400

401401
virtual int loadStore(address insn_addr, address &target) {
402402
intptr_t offset = Instruction_aarch64::sextract(_insn, 23, 5);
@@ -492,7 +492,7 @@ class Decoder : public RelocActions {
492492
};
493493

494494
address MacroAssembler::target_addr_for_insn(address insn_addr, uint32_t insn) {
495-
Decoder decoder(insn_addr, insn);
495+
AArch64Decoder decoder(insn_addr, insn);
496496
address target;
497497
decoder.run(insn_addr, target);
498498
return target;

0 commit comments

Comments
 (0)