mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
parent
9673983443
commit
c83bccd273
1 changed files with 3 additions and 4 deletions
|
|
@ -409,11 +409,10 @@ chunk_boot(void)
|
||||||
chunksize_mask = chunksize - 1;
|
chunksize_mask = chunksize - 1;
|
||||||
chunk_npages = (chunksize >> LG_PAGE);
|
chunk_npages = (chunksize >> LG_PAGE);
|
||||||
|
|
||||||
if (config_stats || config_prof) {
|
if (malloc_mutex_init(&chunks_mtx))
|
||||||
if (malloc_mutex_init(&chunks_mtx))
|
return (true);
|
||||||
return (true);
|
if (config_stats || config_prof)
|
||||||
memset(&stats_chunks, 0, sizeof(chunk_stats_t));
|
memset(&stats_chunks, 0, sizeof(chunk_stats_t));
|
||||||
}
|
|
||||||
if (have_dss && chunk_dss_boot())
|
if (have_dss && chunk_dss_boot())
|
||||||
return (true);
|
return (true);
|
||||||
extent_tree_szad_new(&chunks_szad_mmap);
|
extent_tree_szad_new(&chunks_szad_mmap);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue