Background thread: take base as a parameter.

This commit is contained in:
David T. Goldblatt 2020-02-17 14:13:38 -08:00 committed by David Goldblatt
parent 29436fa056
commit 162c2bcf31
3 changed files with 5 additions and 4 deletions

View file

@ -1820,7 +1820,8 @@ malloc_init_hard(void) {
/* Set reentrancy level to 1 during init. */
pre_reentrancy(tsd, NULL);
/* Initialize narenas before prof_boot2 (for allocation). */
if (malloc_init_narenas() || background_thread_boot1(tsd_tsdn(tsd))) {
if (malloc_init_narenas()
|| background_thread_boot1(tsd_tsdn(tsd), b0get())) {
UNLOCK_RETURN(tsd_tsdn(tsd), true, true)
}
if (config_prof && prof_boot2(tsd, b0get())) {