Skip to content

Commit

Permalink
8345591: [aarch64] macroAssembler_aarch64.cpp compile fails ceil_log2…
Browse files Browse the repository at this point in the history
… not declared
  • Loading branch information
sendaoYan committed Dec 5, 2024
1 parent 97b8a09 commit 4c2ab4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5290,6 +5290,10 @@ void MacroAssembler::decode_heap_oop_not_null(Register dst, Register src) {

MacroAssembler::KlassDecodeMode MacroAssembler::_klass_decode_mode(KlassDecodeNone);

int ceil_log2(int x) {
return std::ceil(std::log2(x));
}

MacroAssembler::KlassDecodeMode MacroAssembler::klass_decode_mode() {
assert(UseCompressedClassPointers, "not using compressed class pointers");
assert(Metaspace::initialized(), "metaspace not initialized yet");
Expand Down

0 comments on commit 4c2ab4c

Please sign in to comment.