Fix nhbins calculation.

This regression was introduced by
155bfa7da1 (Normalize size classes.).
This commit is contained in:
Jason Evans 2015-05-19 17:40:37 -07:00
parent fd5f9e43c3
commit 5aa50a2834

View File

@ -506,7 +506,7 @@ tcache_boot(void)
else
tcache_maxclass = (1U << opt_lg_tcache_max);
nhbins = NBINS + (tcache_maxclass >> LG_PAGE);
nhbins = size2index(tcache_maxclass) + 1;
/* Initialize tcache_bin_info. */
tcache_bin_info = (tcache_bin_info_t *)base_alloc(nhbins *