Skip to content

Commit

Permalink
8343699: [aarch64] Bug in MacroAssembler::klass_decode_mode()
Browse files Browse the repository at this point in the history
Reviewed-by: adinn, coleenp
  • Loading branch information
tstuefe committed Dec 5, 2024
1 parent 308357c commit 456c71d
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 @@ -5305,7 +5305,7 @@ MacroAssembler::KlassDecodeMode MacroAssembler::klass_decode_mode() {
if (operand_valid_for_logical_immediate(
/*is32*/false, (uint64_t)CompressedKlassPointers::base())) {
const size_t range = CompressedKlassPointers::klass_range_end() - CompressedKlassPointers::base();
const uint64_t range_mask = (1ULL << log2i(range)) - 1;
const uint64_t range_mask = right_n_bits(ceil_log2(range));
if (((uint64_t)CompressedKlassPointers::base() & range_mask) == 0) {
return (_klass_decode_mode = KlassDecodeXor);
}
Expand Down

0 comments on commit 456c71d

Please sign in to comment.