mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8292680: Convert Dictionary to ConcurrentHashTable
Reviewed-by: rehn, hseigel
This commit is contained in:
parent
2fe0ce0148
commit
4f50316a1a
30 changed files with 436 additions and 356 deletions
|
@ -161,12 +161,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
static size_t ceil_log2(size_t value) {
|
||||
size_t ret;
|
||||
for (ret = 1; ((size_t)1 << ret) < value; ++ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void SymbolTable::create_table () {
|
||||
size_t start_size_log_2 = ceil_log2(SymbolTableSize);
|
||||
_current_size = ((size_t)1) << start_size_log_2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue