Skip to content

Commit

Permalink
8321063: AArch64: Zero build fails after JDK-8320368
Browse files Browse the repository at this point in the history
Reviewed-by: stuefe, haosun
  • Loading branch information
shipilev committed Nov 30, 2023
1 parent 6941369 commit 8b102ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/oops/compressedKlass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ char* CompressedKlassPointers::reserve_address_space_for_16bit_move(size_t size,
return reserve_address_space_X(nth_bit(32), nth_bit(48), size, nth_bit(32), aslr);
}

#ifndef AARCH64
#if !defined(AARCH64) || defined(ZERO)
// On aarch64 we have an own version; all other platforms use the default version
void CompressedKlassPointers::initialize(address addr, size_t len) {
// The default version of this code tries, in order of preference:
Expand Down Expand Up @@ -115,7 +115,7 @@ void CompressedKlassPointers::initialize(address addr, size_t len) {

DEBUG_ONLY(assert_is_valid_encoding(addr, len, _base, _shift);)
}
#endif // !AARCH64
#endif // !AARCH64 || ZERO

void CompressedKlassPointers::print_mode(outputStream* st) {
st->print_cr("Narrow klass base: " PTR_FORMAT ", Narrow klass shift: %d, "
Expand Down

1 comment on commit 8b102ed

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.