diff options
author | Jason Evans <jasone@canonware.com> | 2016-11-04 00:25:54 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-11-04 05:33:23 (GMT) |
commit | 8dd5ea87cac39d9a90dbe40d13267ec02df0214c (patch) | |
tree | 787ed4b1f3989dcceba6bd2ba3b888e3ae2f4563 /include/jemalloc | |
parent | 4f7d8c2dee624536e30e2fba907e2ce469b2cdf7 (diff) | |
download | jemalloc-8dd5ea87cac39d9a90dbe40d13267ec02df0214c.zip jemalloc-8dd5ea87cac39d9a90dbe40d13267ec02df0214c.tar.gz jemalloc-8dd5ea87cac39d9a90dbe40d13267ec02df0214c.tar.bz2 |
Fix extent_alloc_cache[_locked]() to support decommitted allocation.
Fix extent_alloc_cache[_locked]() to support decommitted allocation, and
use this ability in arena_stash_dirty(), so that decommitted extents are
not needlessly committed during purging. In practice this does not
happen on any currently supported systems, because both extent merging
and decommit must be implemented; all supported systems implement one
xor the other.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/extent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jemalloc/internal/extent.h b/include/jemalloc/internal/extent.h index 08d3036..673cac2 100644 --- a/include/jemalloc/internal/extent.h +++ b/include/jemalloc/internal/extent.h @@ -101,10 +101,10 @@ ph_proto(, extent_heap_, extent_heap_t, extent_t) extent_t *extent_alloc_cache_locked(tsdn_t *tsdn, arena_t *arena, extent_hooks_t **r_extent_hooks, void *new_addr, size_t usize, size_t pad, - size_t alignment, bool *zero, bool slab); + size_t alignment, bool *zero, bool *commit, bool slab); extent_t *extent_alloc_cache(tsdn_t *tsdn, arena_t *arena, extent_hooks_t **r_extent_hooks, void *new_addr, size_t usize, size_t pad, - size_t alignment, bool *zero, bool slab); + size_t alignment, bool *zero, bool *commit, bool slab); extent_t *extent_alloc_wrapper(tsdn_t *tsdn, arena_t *arena, extent_hooks_t **r_extent_hooks, void *new_addr, size_t usize, size_t pad, size_t alignment, bool *zero, bool *commit, bool slab); |