* Lai Jiangshan ([email protected]) wrote: > When I change MIN_ALLOC_ORDER macro to parameter, > I forgot set min_alloc_order before used it which causes bug.
Merged, thanks ! Mathieu > > Signed-off-by: Lai Jiangshan <[email protected]> > --- > rculfhash.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/rculfhash.c b/rculfhash.c > index 5ff832d..41ae278 100644 > --- a/rculfhash.c > +++ b/rculfhash.c > @@ -1349,10 +1349,10 @@ struct cds_lfht *_cds_lfht_new(cds_lfht_hash_fct > hash_fct, > pthread_mutex_init(&ht->resize_mutex, NULL); > order = get_count_order_ulong(init_size); > ht->t.resize_target = 1UL << order; > - cds_lfht_create_dummy(ht, 1UL << order); > - ht->t.size = 1UL << order; > ht->min_alloc_size = min_alloc_size; > ht->min_alloc_order = get_count_order_ulong(min_alloc_size); > + cds_lfht_create_dummy(ht, 1UL << order); > + ht->t.size = 1UL << order; > return ht; > } > > -- > 1.7.4.4 > -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com _______________________________________________ ltt-dev mailing list [email protected] http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
