Skip to content

Commit

Permalink
Fix hash shift for 32 bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rkennke committed Aug 22, 2024
1 parent 7009e14 commit 5ffc582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/markWord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class markWord {
static const int self_fwd_bits = 1;
static const int max_hash_bits = BitsPerWord - age_bits - lock_bits - self_fwd_bits;
static const int hash_bits = max_hash_bits > 31 ? 31 : max_hash_bits;
static const int unused_gap_bits = 4; // Reserved for Valhalla.
static const int unused_gap_bits = LP64_ONLY(4) NOT_LP64(0); // Reserved for Valhalla.

static const int lock_shift = 0;
static const int self_fwd_shift = lock_shift + lock_bits;
Expand Down

0 comments on commit 5ffc582

Please sign in to comment.