Fix nhbins calculation.
This regression was introduced by
155bfa7da1
(Normalize size classes.).
This commit is contained in:
parent
fd5f9e43c3
commit
5aa50a2834
@ -506,7 +506,7 @@ tcache_boot(void)
|
|||||||
else
|
else
|
||||||
tcache_maxclass = (1U << opt_lg_tcache_max);
|
tcache_maxclass = (1U << opt_lg_tcache_max);
|
||||||
|
|
||||||
nhbins = NBINS + (tcache_maxclass >> LG_PAGE);
|
nhbins = size2index(tcache_maxclass) + 1;
|
||||||
|
|
||||||
/* Initialize tcache_bin_info. */
|
/* Initialize tcache_bin_info. */
|
||||||
tcache_bin_info = (tcache_bin_info_t *)base_alloc(nhbins *
|
tcache_bin_info = (tcache_bin_info_t *)base_alloc(nhbins *
|
||||||
|
Loading…
Reference in New Issue
Block a user