From 2a6f2af6e446a98a635caadd281a23ca09a491cb Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Thu, 16 Dec 2010 14:23:32 -0800 Subject: [PATCH] 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). --- jemalloc/src/arena.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c index f175169c..3cf15ff2 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);