mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
Check arena in current context in pre_reentrancy.
This commit is contained in:
parent
d6eb8ac8f3
commit
425463a446
7 changed files with 51 additions and 47 deletions
|
|
@ -1476,7 +1476,7 @@ malloc_init_hard(void) {
|
|||
|
||||
malloc_mutex_lock(tsd_tsdn(tsd), &init_lock);
|
||||
/* Set reentrancy level to 1 during init. */
|
||||
pre_reentrancy(tsd);
|
||||
pre_reentrancy(tsd, NULL);
|
||||
/* Initialize narenas before prof_boot2 (for allocation). */
|
||||
if (malloc_init_narenas() || background_thread_boot1(tsd_tsdn(tsd))) {
|
||||
UNLOCK_RETURN(tsd_tsdn(tsd), true, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue