Minore fixes.

This commit is contained in:
levlam 2022-02-24 21:38:57 +03:00
parent 35cf57eed8
commit ecb14f1bdd
2 changed files with 1 additions and 6 deletions

View File

@ -561,7 +561,6 @@ class FlatHashTable {
auto old_nodes = nodes_;
uint32 old_size = get_used_node_count();
uint32 old_bucket_count = get_bucket_count_mask() + 1;
;
nodes_ = allocate_nodes(new_size);
used_node_count() = old_size;
@ -579,7 +578,7 @@ class FlatHashTable {
}
void erase_node(NodeT *it) {
DCHECK(nodes_ <= it && it - nodes_ < bucket_count());
DCHECK(nodes_ <= it && static_cast<size_t>(it - nodes_) < bucket_count());
uint32 empty_i = static_cast<uint32>(it - nodes_);
auto empty_bucket = empty_i;
nodes_[empty_bucket].clear();

View File

@ -102,10 +102,6 @@ struct ChainSchedulerQuery {
bool skipped{};
};
static td::StringBuilder &operator<<(td::StringBuilder &sb, const ChainSchedulerQuery &q) {
return sb << "Q{" << q.id << "}";
}
TEST(ChainScheduler, Stress) {
td::Random::Xorshift128plus rnd(123);
int max_query_id = 100000;