Skip percpu arena when choosing iarena.
This commit is contained in:
parent
c2fcf9c2cf
commit
d16f1e53df
@ -47,7 +47,7 @@ arena_choose_impl(tsd_t *tsd, arena_t *arena, bool internal) {
|
|||||||
* managed arena), then percpu arena is skipped.
|
* managed arena), then percpu arena is skipped.
|
||||||
*/
|
*/
|
||||||
if (have_percpu_arena && (percpu_arena_mode != percpu_arena_disabled) &&
|
if (have_percpu_arena && (percpu_arena_mode != percpu_arena_disabled) &&
|
||||||
(arena_ind_get(ret) < percpu_arena_ind_limit()) &&
|
!internal && (arena_ind_get(ret) < percpu_arena_ind_limit()) &&
|
||||||
(ret->last_thd != tsd_tsdn(tsd))) {
|
(ret->last_thd != tsd_tsdn(tsd))) {
|
||||||
unsigned ind = percpu_arena_choose();
|
unsigned ind = percpu_arena_choose();
|
||||||
if (arena_ind_get(ret) != ind) {
|
if (arena_ind_get(ret) != ind) {
|
||||||
|
Loading…
Reference in New Issue
Block a user