mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-23 05:16:26 +03:00
Rename chunks_{cached,retained,mtx} to extents_{cached,retained,mtx}.
This commit is contained in:
parent
127026ad98
commit
c9a76481d8
4 changed files with 35 additions and 34 deletions
|
|
@ -235,20 +235,20 @@ struct arena_s {
|
|||
malloc_mutex_t large_mtx;
|
||||
|
||||
/*
|
||||
* Heaps of chunks that were previously allocated. These are used when
|
||||
* allocating chunks, in an attempt to re-use address space.
|
||||
* Heaps of extents that were previously allocated. These are used when
|
||||
* allocating extents, in an attempt to re-use address space.
|
||||
*/
|
||||
extent_heap_t chunks_cached[NPSIZES];
|
||||
extent_heap_t chunks_retained[NPSIZES];
|
||||
extent_heap_t extents_cached[NPSIZES];
|
||||
extent_heap_t extents_retained[NPSIZES];
|
||||
/* User-configurable extent hook functions. */
|
||||
extent_hooks_t extent_hooks;
|
||||
/* Protects extents_cached, extents_retained, and extent_hooks. */
|
||||
malloc_mutex_t extents_mtx;
|
||||
|
||||
malloc_mutex_t chunks_mtx;
|
||||
/* Cache of extent structures that were allocated via base_alloc(). */
|
||||
ql_head(extent_t) extent_cache;
|
||||
malloc_mutex_t extent_cache_mtx;
|
||||
|
||||
/* User-configurable extent hook functions. */
|
||||
extent_hooks_t extent_hooks;
|
||||
|
||||
/* bins is used to store heaps of free regions. */
|
||||
arena_bin_t bins[NBINS];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ typedef int witness_comp_t (const witness_t *, void *, const witness_t *,
|
|||
#define WITNESS_RANK_PROF_GCTX 7U
|
||||
|
||||
#define WITNESS_RANK_ARENA 8U
|
||||
#define WITNESS_RANK_ARENA_CHUNKS 9U
|
||||
#define WITNESS_RANK_ARENA_EXTENTS 9U
|
||||
#define WITNESS_RANK_ARENA_EXTENT_CACHE 10
|
||||
|
||||
#define WITNESS_RANK_RTREE_ELM 11U
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue