mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-27 05:12:12 +03:00
Fix nhbins calculation.
This regression was introduced by
155bfa7da1 (Normalize size classes.).
This commit is contained in:
parent
fd5f9e43c3
commit
5aa50a2834
1 changed files with 1 additions and 1 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue