diff options
author | Park Ju Hyung <qkrwngud825@gmail.com> | 2019-10-14 05:54:33 +0900 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-05-05 23:46:36 +0800 |
commit | 259b8f27be8b693b48cd1b8843643ab1a7340386 (patch) | |
tree | 9bf197a1ef8bdf38dc1e6b2a6ff18206946b89e0 | |
parent | e3c09ba8290d46b37403a5de1bf5f88afa956546 (diff) |
jemalloc: disable config parsing altogether
This is never used on Android.
Remove it for faster initialization and lighter libc.so.
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Change-Id: I1c4a6fa69ef8c986a0caf5369ef71efeff1c6ef3
-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); |