mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-17 16:11:42 +03:00
Fix next_arena initialization.
If there is more than one arena, initialize next_arena so that the first and second threads to allocate memory use arenas 0 and 1, rather than both using arena 0.
This commit is contained in:
parent
2206e1acc1
commit
ed3d152ea0
1 changed files with 1 additions and 1 deletions
|
|
@ -775,7 +775,7 @@ MALLOC_OUT:
|
|||
#endif
|
||||
|
||||
#ifndef NO_TLS
|
||||
next_arena = 0;
|
||||
next_arena = (narenas > 0) ? 1 : 0;
|
||||
#endif
|
||||
|
||||
/* Allocate and initialize arenas. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue