From c3500b01d53316ec9f1f533c74466384998772f5 Mon Sep 17 00:00:00 2001 From: Park Ju Hyung Date: Mon, 14 Oct 2019 05:54:33 +0900 Subject: 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 --- src/jemalloc.c | 5 +++-- 1 file 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); -- cgit v1.2.3