mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-17 17:07:53 +00:00
8155100: AArch64: Relax alignment requirement for byte_map_base
Reviewed-by: roland
This commit is contained in:
parent
5884a7924e
commit
afcf41b8d4
@ -4093,7 +4093,10 @@ void MacroAssembler::load_byte_map_base(Register reg) {
|
||||
// and it might even be negative.
|
||||
unsigned long offset;
|
||||
adrp(reg, ExternalAddress((address)byte_map_base), offset);
|
||||
assert(offset == 0, "misaligned card table base");
|
||||
// We expect offset to be zero with most collectors.
|
||||
if (offset != 0) {
|
||||
add(reg, reg, offset);
|
||||
}
|
||||
} else {
|
||||
mov(reg, (uint64_t)byte_map_base);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user