summaryrefslogtreecommitdiffstats
path: root/jemalloc/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2010-12-16 22:23:32 (GMT)
committerJason Evans <je@fb.com>2010-12-16 22:23:32 (GMT)
commit2a6f2af6e446a98a635caadd281a23ca09a491cb (patch)
tree26b151fb9a5257b2f9d72a1536c587162a287cdb /jemalloc/src
parent2b769797cecb9c5dce14ae32fb8e25722f0f206f (diff)
downloadjemalloc-2a6f2af6e446a98a635caadd281a23ca09a491cb.zip
jemalloc-2a6f2af6e446a98a635caadd281a23ca09a491cb.tar.gz
jemalloc-2a6f2af6e446a98a635caadd281a23ca09a491cb.tar.bz2
Remove an arena_bin_run_size_calc() constraint.
Remove the constraint that small run headers fit in one page. This constraint was necessary to avoid dirty page purging issues for unused pages within runs for medium size classes (which no longer exist).
Diffstat (limited to 'jemalloc/src')
-rw-r--r--jemalloc/src/arena.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c
index f175169..3cf15ff 100644
--- a/jemalloc/src/arena.c
+++ b/jemalloc/src/arena.c
@@ -1367,7 +1367,6 @@ arena_tcache_fill_small(arena_t *arena, tcache_bin_t *tbin, size_t binind
* *) bin->run_size >= min_run_size
* *) bin->run_size <= arena_maxclass
* *) run header overhead <= RUN_MAX_OVRHD (or header overhead relaxed).
- * *) run header size < PAGE_SIZE
*
* bin->nregs and bin->reg0_offset are also calculated here, since these
* settings are all interdependent.
@@ -1453,8 +1452,7 @@ arena_bin_run_size_calc(arena_bin_t *bin, size_t min_run_size)
} while (try_run_size <= arena_maxclass
&& try_run_size <= arena_maxclass
&& RUN_MAX_OVRHD * (bin->reg_size << 3) > RUN_MAX_OVRHD_RELAX
- && (try_reg0_offset << RUN_BFP) > RUN_MAX_OVRHD * try_run_size
- && try_hdr_size < PAGE_SIZE);
+ && (try_reg0_offset << RUN_BFP) > RUN_MAX_OVRHD * try_run_size);
assert(good_hdr_size <= good_reg0_offset);