Skip to content

Commit 3ab3f52

Browse files
lewurmshipilev
authored andcommitted
8326974: ODR violation in macroAssembler_aarch64.cpp
Backport-of: b972997af76a506ffd79ee8c6043e7a8db836b33
1 parent 5d5c678 commit 3ab3f52

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
@@ -389,13 +389,13 @@ static bool offset_for(uint32_t insn1, uint32_t insn2, ptrdiff_t &byte_offset) {
389389
return false;
390390
}
391391

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

397397
public:
398-
Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
398+
AArch64Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
399399

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

493493
address MacroAssembler::target_addr_for_insn(address insn_addr, uint32_t insn) {
494-
Decoder decoder(insn_addr, insn);
494+
AArch64Decoder decoder(insn_addr, insn);
495495
address target;
496496
decoder.run(insn_addr, target);
497497
return target;

0 commit comments

Comments
 (0)