| 1741 | } |
| 1742 | |
| 1743 | static void |
| 1744 | malloc_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 |
no test coverage detected