Skip to content

Commit ab17f88

Browse files
eastigsimonis
authored andcommitted
8283626: AArch64: Set relocInfo::offset_unit to 4
Reviewed-by: simonis, aph
1 parent c3d903a commit ab17f88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/hotspot/cpu/aarch64/relocInfo_aarch64.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
// machine-dependent parts of class relocInfo
3030
private:
3131
enum {
32-
// Relocations are byte-aligned.
33-
offset_unit = 1,
32+
// AArch64 instructions are always 4 bytes long and 4-aligned, so
33+
// the two lowest offset bits can always be discarded.
34+
offset_unit = 4,
3435
// Must be at least 1 for RelocInfo::narrow_oop_in_const.
3536
format_width = 1
3637
};

0 commit comments

Comments
 (0)