mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-24 14:49:58 +00:00
8345225: AARCH64: VM crashes with -NearCpool +UseShenandoahGC options
Reviewed-by: aph, shade
This commit is contained in:
parent
ea3cf1b882
commit
7cf190fbb0
@ -1003,9 +1003,6 @@ void MacroAssembler::c2bool(Register x) {
|
||||
|
||||
address MacroAssembler::ic_call(address entry, jint method_index) {
|
||||
RelocationHolder rh = virtual_call_Relocation::spec(pc(), method_index);
|
||||
// address const_ptr = long_constant((jlong)Universe::non_oop_word());
|
||||
// uintptr_t offset;
|
||||
// ldr_constant(rscratch2, const_ptr);
|
||||
movptr(rscratch2, (intptr_t)Universe::non_oop_word());
|
||||
return trampoline_call(Address(entry, rh));
|
||||
}
|
||||
@ -5520,9 +5517,8 @@ void MacroAssembler::movoop(Register dst, jobject obj) {
|
||||
mov(dst, Address((address)obj, rspec));
|
||||
} else {
|
||||
address dummy = address(uintptr_t(pc()) & -wordSize); // A nearby aligned address
|
||||
ldr_constant(dst, Address(dummy, rspec));
|
||||
ldr(dst, Address(dummy, rspec));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Move a metadata address into a register.
|
||||
|
||||
@ -1472,16 +1472,6 @@ public:
|
||||
|
||||
public:
|
||||
|
||||
void ldr_constant(Register dest, const Address &const_addr) {
|
||||
if (NearCpool) {
|
||||
ldr(dest, const_addr);
|
||||
} else {
|
||||
uint64_t offset;
|
||||
adrp(dest, InternalAddress(const_addr.target()), offset);
|
||||
ldr(dest, Address(dest, offset));
|
||||
}
|
||||
}
|
||||
|
||||
address read_polling_page(Register r, relocInfo::relocType rtype);
|
||||
void get_polling_page(Register dest, relocInfo::relocType rtype);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user