diff options
author | Park Ju Hyung <qkrwngud825@gmail.com> | 2019-10-14 05:54:33 +0900 |
---|---|---|
committer | Juhyung Park <qkrwngud825@gmail.com> | 2022-02-18 22:46:06 +0900 |
commit | c3500b01d53316ec9f1f533c74466384998772f5 (patch) | |
tree | 01d8728acaab1f58f8d577766735cc3cf0ec6fa3 | |
parent | 3e3160bff83e9c36e582eaac633ca585d9d028ad (diff) |
jemalloc: disable config parsing altogether
This is never used on Android.
Remove it for faster initialization and lighter libc.so.
Change-Id: Ifa54266b3d488f0b4a6301274ff114431fbe4112
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
-rw-r--r-- | src/jemalloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index a5f7bad6..cc916497 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1017,6 +1017,7 @@ obtain_malloc_conf(unsigned which_source, char buf[PATH_MAX + 1]) { return ret; } +#if 0 static void malloc_conf_init_helper(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS], bool initial_call, const char *opts_cache[MALLOC_CONF_NSOURCES], @@ -1443,7 +1444,7 @@ malloc_conf_init(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS]) { malloc_conf_init_helper(sc_data, bin_shard_sizes, false, opts_cache, NULL); } - +#endif #undef MALLOC_CONF_NSOURCES static bool @@ -1499,7 +1500,7 @@ malloc_init_hard_a0_locked() { if (config_prof) { prof_boot0(); } - malloc_conf_init(&sc_data, bin_shard_sizes); + // malloc_conf_init(&sc_data, bin_shard_sizes); sz_boot(&sc_data); bin_boot(&sc_data, bin_shard_sizes); |