src/share/vm/classfile/symbolTable.cpp
Print this page
rev 6680 : 8056084: Refactor Hashtable to allow implementations without rehashing support
Reviewed-by: gziemski, jmasa, brutisso, coleenp, tschatzl
*** 203,213 ****
return sym;
}
}
}
// If the bucket size is too deep check if this hash code is insufficient.
! if (count >= BasicHashtable<mtSymbol>::rehash_count && !needs_rehashing()) {
_needs_rehashing = check_rehash_table(count);
}
return NULL;
}
--- 203,213 ----
return sym;
}
}
}
// If the bucket size is too deep check if this hash code is insufficient.
! if (count >= rehash_count && !needs_rehashing()) {
_needs_rehashing = check_rehash_table(count);
}
return NULL;
}
*** 654,664 ****
return l->literal();
}
}
}
// If the bucket size is too deep check if this hash code is insufficient.
! if (count >= BasicHashtable<mtSymbol>::rehash_count && !needs_rehashing()) {
_needs_rehashing = check_rehash_table(count);
}
return NULL;
}
--- 654,664 ----
return l->literal();
}
}
}
// If the bucket size is too deep check if this hash code is insufficient.
! if (count >= rehash_count && !needs_rehashing()) {
_needs_rehashing = check_rehash_table(count);
}
return NULL;
}