Skip to content

Commit

Permalink
Fix loop on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
tstuefe authored and rkennke committed Sep 16, 2024
1 parent c398b05 commit a191abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5122,7 +5122,7 @@ MacroAssembler::KlassDecodeMode MacroAssembler::klass_decode_mode() {
if (operand_valid_for_logical_immediate(
/*is32*/false, (uint64_t)CompressedKlassPointers::base())) {
const uint64_t range_mask =
nth_bit(ceil_log2(CompressedKlassPointers::highest_valid_narrow_klass_id()) +
nth_bit(ceil_log2((uint64_t)CompressedKlassPointers::highest_valid_narrow_klass_id()) +
CompressedKlassPointers::shift()) - 1;
if (((uint64_t)CompressedKlassPointers::base() & range_mask) == 0) {
return (_klass_decode_mode = KlassDecodeXor);
Expand Down

0 comments on commit a191abc

Please sign in to comment.