mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
Extent -> Ehooks: Move over default hooks.
This commit is contained in:
parent
2fe5108263
commit
c8dae890c8
8 changed files with 43 additions and 38 deletions
20
src/extent.c
20
src/extent.c
|
|
@ -34,26 +34,6 @@ static extent_t *extent_split_impl(tsdn_t *tsdn, arena_t *arena,
|
|||
static bool extent_merge_impl(tsdn_t *tsdn, arena_t *arena, ehooks_t *ehooks,
|
||||
extent_t *a, extent_t *b, bool growing_retained);
|
||||
|
||||
const extent_hooks_t extent_hooks_default = {
|
||||
ehooks_default_alloc,
|
||||
ehooks_default_dalloc,
|
||||
ehooks_default_destroy,
|
||||
ehooks_default_commit,
|
||||
ehooks_default_decommit,
|
||||
#ifdef PAGES_CAN_PURGE_LAZY
|
||||
ehooks_default_purge_lazy,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
#ifdef PAGES_CAN_PURGE_FORCED
|
||||
ehooks_default_purge_forced,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
ehooks_default_split,
|
||||
ehooks_default_merge
|
||||
};
|
||||
|
||||
/* Used exclusively for gdump triggering. */
|
||||
static atomic_zu_t curpages;
|
||||
static atomic_zu_t highpages;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue