summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-04-15 03:54:49 (GMT)
committerQi Wang <interwq@gmail.com>2017-04-17 04:34:44 (GMT)
commitd16f1e53df3836f95deeca73419bb8c541aa579f (patch)
tree58f7d19a73afe20b4430f5e7be686d74a32c7ce3 /include/jemalloc
parentc2fcf9c2cfcbaba58db1941c91c7a8a4b6623401 (diff)
downloadjemalloc-d16f1e53df3836f95deeca73419bb8c541aa579f.zip
jemalloc-d16f1e53df3836f95deeca73419bb8c541aa579f.tar.gz
jemalloc-d16f1e53df3836f95deeca73419bb8c541aa579f.tar.bz2
Skip percpu arena when choosing iarena.
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_inlines_b.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_inlines_b.h b/include/jemalloc/internal/jemalloc_internal_inlines_b.h
index e7d564c..f22708a 100644
--- a/include/jemalloc/internal/jemalloc_internal_inlines_b.h
+++ b/include/jemalloc/internal/jemalloc_internal_inlines_b.h
@@ -47,7 +47,7 @@ arena_choose_impl(tsd_t *tsd, arena_t *arena, bool internal) {
* managed arena), then percpu arena is skipped.
*/
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))) {
unsigned ind = percpu_arena_choose();
if (arena_ind_get(ret) != ind) {