Skip to content
Permalink
Browse files
8269986: Remove +3 from Symbol::identity_hash()
Reviewed-by: coleenp
  • Loading branch information
iklam committed Nov 10, 2021
1 parent 2374abd commit df02daa6f9df801a7e0b6203fd6411d8a62bb277
Showing 1 changed file with 1 addition and 1 deletion.
@@ -155,7 +155,7 @@ class Symbol : public MetaspaceObj {
// Returns the largest size symbol we can safely hold.
static int max_length() { return max_symbol_length; }
unsigned identity_hash() const {
unsigned addr_bits = (unsigned)((uintptr_t)this >> (LogBytesPerWord + 3));
unsigned addr_bits = (unsigned)((uintptr_t)this >> LogBytesPerWord);
return ((unsigned)extract_hash(_hash_and_refcount) & 0xffff) |
((addr_bits ^ (length() << 8) ^ (( _body[0] << 8) | _body[1])) << 16);
}

1 comment on commit df02daa

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on df02daa Nov 10, 2021

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.