aboutsummaryrefslogtreecommitdiff
path: root/dep/jemalloc/src/extent_dss.c
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-10-27 17:42:15 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-18 23:39:50 +0100
commitfa4830af80fc9e13f289c3bcb3e47a0f93f9c445 (patch)
treeab61a70a18160d4ed4367f9864654de768d6b2ac /dep/jemalloc/src/extent_dss.c
parent22987b705b150590f300240cd0309ac88bd902d5 (diff)
Dep/Jemalloc: Update to Jemalloc 5.2.1
(cherry picked from commit 89cb584780aa936f9353fc8a2acd009c49461134)
Diffstat (limited to 'dep/jemalloc/src/extent_dss.c')
-rw-r--r--dep/jemalloc/src/extent_dss.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dep/jemalloc/src/extent_dss.c b/dep/jemalloc/src/extent_dss.c
index 6c56cf6568c..85817891105 100644
--- a/dep/jemalloc/src/extent_dss.c
+++ b/dep/jemalloc/src/extent_dss.c
@@ -113,7 +113,7 @@ extent_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size,
cassert(have_dss);
assert(size > 0);
- assert(alignment > 0);
+ assert(alignment == ALIGNMENT_CEILING(alignment, PAGE));
/*
* sbrk() uses a signed increment argument, so take care not to
@@ -156,7 +156,8 @@ extent_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size,
extent_init(gap, arena, gap_addr_page,
gap_size_page, false, SC_NSIZES,
arena_extent_sn_next(arena),
- extent_state_active, false, true, true);
+ extent_state_active, false, true, true,
+ EXTENT_NOT_HEAD);
}
/*
* Compute the address just past the end of the desired
@@ -200,7 +201,7 @@ extent_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size,
extent_init(&extent, arena, ret, size,
size, false, SC_NSIZES,
extent_state_active, false, true,
- true);
+ true, EXTENT_NOT_HEAD);
if (extent_purge_forced_wrapper(tsdn,
arena, &extent_hooks, &extent, 0,
size)) {