mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 18:47:19 +03:00
Refactor the tcache initiailization
1. Pre-generate all default tcache ncached_max in tcache_boot; 2. Add getters returning default ncached_max and ncached_max_set; 3. Refactor tcache init so that it is always init with a given setting.
This commit is contained in:
parent
8a22d10b83
commit
6fb3b6a8e4
7 changed files with 75 additions and 61 deletions
|
|
@ -2,8 +2,6 @@
|
|||
#include "test/san.h"
|
||||
|
||||
const char *malloc_conf = TEST_SAN_UAF_ALIGN_DISABLE;
|
||||
extern void tcache_bin_info_compute(
|
||||
cache_bin_info_t tcache_bin_info[TCACHE_NBINS_MAX]);
|
||||
|
||||
enum {
|
||||
alloc_option_start = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue