MCPcopy Create free account
hub / github.com/beefytech/Beef / malloc_conf_init

Function malloc_conf_init

BeefRT/JEMalloc/src/jemalloc.c:1743–1759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1741}
1742
1743static void
1744malloc_conf_init(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS]) {
1745 const char *opts_cache[MALLOC_CONF_NSOURCES] = {NULL, NULL, NULL, NULL,
1746 NULL};
1747 char buf[PATH_MAX + 1];
1748
1749 /* The first call only set the confirm_conf option and opts_cache */
1750 malloc_conf_init_helper(NULL, NULL, true, opts_cache, buf);
1751 malloc_conf_init_helper(sc_data, bin_shard_sizes, false, opts_cache,
1752 NULL);
1753 if (malloc_conf_init_check_deps()) {
1754 /* check_deps does warning msg only; abort below if needed. */
1755 if (opt_abort_conf) {
1756 malloc_abort_invalid_conf();
1757 }
1758 }
1759}
1760
1761#undef MALLOC_CONF_NSOURCES
1762

Callers 1

Calls 3

malloc_conf_init_helperFunction · 0.85

Tested by

no test coverage detected