8205006: Assertion failure when rehashing stringtable

Reviewed-by: lfoltan, zgu
This commit is contained in:
Robbin Ehn 2018-06-19 16:14:39 +02:00
parent 58f944b75e
commit ca60e251a9

View File

@ -1203,7 +1203,7 @@ inline bool ConcurrentHashTable<VALUE, CONFIG, F>::
if (!try_resize_lock(thread)) {
return false;
}
assert(_new_table == NULL, "Must be NULL");
assert(_new_table == NULL || _new_table == POISON_PTR, "Must be NULL");
for (size_t bucket_it = 0; bucket_it < _table->_size; bucket_it++) {
Bucket* bucket = _table->get_bucket(bucket_it);
assert(!bucket->have_redirect() && !bucket->is_locked(), "Table must be uncontended");