Fix arena_choose_hard() regression.
This regression was caused by 66cd953514
(Do not allocate metadata via non-auto arenas, nor tcaches.).
This commit is contained in:
parent
71d94828a2
commit
259f8ebbfc
@ -619,7 +619,7 @@ arena_choose_hard(tsd_t *tsd, bool internal)
|
|||||||
|
|
||||||
for (j = 0; j < 2; j++) {
|
for (j = 0; j < 2; j++) {
|
||||||
if (arena_nthreads_get(arena_get(tsd, choose[j], false),
|
if (arena_nthreads_get(arena_get(tsd, choose[j], false),
|
||||||
!!j) == 0 || first_null != narenas_auto) {
|
!!j) == 0 || first_null == narenas_auto) {
|
||||||
/*
|
/*
|
||||||
* Use an unloaded arena, or the least loaded
|
* Use an unloaded arena, or the least loaded
|
||||||
* arena if all arenas are already initialized.
|
* arena if all arenas are already initialized.
|
||||||
|
Loading…
Reference in New Issue
Block a user