8283626: AArch64: Set relocInfo::offset_unit to 4

Reviewed-by: simonis, aph
This commit is contained in:
Evgeny Astigeevich 2022-03-29 13:48:18 +00:00 committed by Volker Simonis
parent c3d903a55a
commit ab17f88f6c

View file

@ -29,8 +29,9 @@
// machine-dependent parts of class relocInfo // machine-dependent parts of class relocInfo
private: private:
enum { enum {
// Relocations are byte-aligned. // AArch64 instructions are always 4 bytes long and 4-aligned, so
offset_unit = 1, // the two lowest offset bits can always be discarded.
offset_unit = 4,
// Must be at least 1 for RelocInfo::narrow_oop_in_const. // Must be at least 1 for RelocInfo::narrow_oop_in_const.
format_width = 1 format_width = 1
}; };