mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Extent -> Ehooks: Move over default hooks.
This commit is contained in:
committed by
David Goldblatt
parent
2fe5108263
commit
c8dae890c8
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;
|
||||
|
||||
Reference in New Issue
Block a user