>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 1 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 3 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
+ test( s );
+ }
+
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+
+ TEST_F( SplitListLazySet_DHP, static_bucket_table )
+ {
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::lazy_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::lazy_list::traits
+ {
+ typedef cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
+
+ set_type s( kSize, 4 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 3 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
+ test( s );
+ }
+
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+
+ TEST_F( SplitListLazySet_HP, static_bucket_table )
+ {
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::lazy_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::lazy_list::traits
+ {
+ typedef cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
+
+ set_type s( kSize, 4 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 1 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 3 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 3 );
test( s );
}
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+
+ TEST_F( SplitListLazySet_NoGC, static_bucket_table )
+ {
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::lazy_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::lazy_list::traits
+ {
+ typedef cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
+
+ set_type s( kSize, 4 );
+ test( s );
+ }
+
+
} // namespace
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 3 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
+ test( s );
+ }
+
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+
+ TEST_F( SplitListMichaelSet_DHP, static_bucket_table )
+ {
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::michael_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::michael_list::traits
+ {
+ typedef cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
+
+ set_type s( kSize, 4 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 3 );
+ test( s );
+ }
+
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+
+ TEST_F( SplitListMichaelSet_HP, static_bucket_table )
+ {
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::michael_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::michael_list::traits
+ {
+ typedef cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
+
+ set_type s( kSize, 4 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( kSize, 3 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 4 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 5 );
test( s );
}
};
typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( kSize, 2 );
test( s );
}
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+
+ TEST_F( SplitListMichaelSet_NoGC, static_bucket_table )
+ {
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::michael_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::michael_list::traits
+ {
+ typedef cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< gc_type, int_item, set_traits > set_type;
+
+ set_type s( kSize, 4 );
+ test( s );
+ }
+
+
} // namespace
>::type
> set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 4 );
this->test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 1 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 3 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
+namespace {
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+}
+
+TYPED_TEST_P( SplitListLazySet, static_bucket_table )
+{
+ typedef typename TestFixture::rcu_type rcu_type;
+ typedef typename TestFixture::int_item int_item;
+ typedef typename TestFixture::hash_int hash_int;
+
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::lazy_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::lazy_list::traits
+ {
+ typedef typename TestFixture::cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
+
+ set_type s( TestFixture::kSize, 4 );
+ test( s );
+}
+
+
// GCC 5: All this->test names should be written on single line, otherwise a runtime error will be encountered like as
// "No this->test named <test_name> can be found in this this->test case"
REGISTER_TYPED_TEST_CASE_P( SplitListLazySet,
- compare, less, cmpmix, item_counting, stat, back_off, mutex
+ compare, less, cmpmix, item_counting, stat, back_off, mutex, static_bucket_table
);
TYPED_TEST_CASE_P( SplitListMichaelSet );
-//TYPED_TEST_P( SplitListMichaelSet, compare )
TYPED_TEST_P( SplitListMichaelSet, compare )
{
typedef typename TestFixture::rcu_type rcu_type;
>::type
> set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
>::type
> set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 3 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 8 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 4 );
this->test( s );
}
};
typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
- set_type s;
+ set_type s( TestFixture::kSize, 2 );
this->test( s );
}
+namespace {
+ struct set_static_traits: public cc::split_list::traits
+ {
+ static bool const dynamic_bucket_table = false;
+ };
+}
+
+TYPED_TEST_P( SplitListMichaelSet, static_bucket_table )
+{
+ typedef typename TestFixture::rcu_type rcu_type;
+ typedef typename TestFixture::int_item int_item;
+ typedef typename TestFixture::hash_int hash_int;
+
+ struct set_traits: public set_static_traits
+ {
+ typedef cc::michael_list_tag ordered_list;
+ typedef hash_int hash;
+ typedef cds::atomicity::item_counter item_counter;
+
+ struct ordered_list_traits: public cc::michael_list::traits
+ {
+ typedef typename TestFixture::cmp compare;
+ typedef cds::backoff::pause back_off;
+ };
+ };
+ typedef cc::SplitListSet< rcu_type, int_item, set_traits > set_type;
+
+ set_type s( TestFixture::kSize, 4 );
+ test( s );
+}
+
// GCC 5: All this->test names should be written on single line, otherwise a runtime error will be encountered like as
// "No this->test named <test_name> can be found in this this->test case"
REGISTER_TYPED_TEST_CASE_P( SplitListMichaelSet,
- compare, less, cmpmix, item_counting, stat, back_off
+ compare, less, cmpmix, item_counting, stat, back_off, static_bucket_table
);