mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8155100: AArch64: Relax alignment requirement for byte_map_base
Reviewed-by: roland
This commit is contained in:
parent
5884a7924e
commit
afcf41b8d4
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue