2020-03-08 12:14:49 +08:00
|
|
|
#ifndef JEMALLOC_INTERNAL_PA_H
|
|
|
|
#define JEMALLOC_INTERNAL_PA_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The page allocator; responsible for acquiring pages of memory for
|
|
|
|
* allocations.
|
|
|
|
*/
|
|
|
|
|
2020-03-09 01:35:56 +08:00
|
|
|
typedef struct pa_shard_s pa_shard_t;
|
|
|
|
struct pa_shard_s {
|
|
|
|
/*
|
|
|
|
* Collections of extents that were previously allocated. These are
|
|
|
|
* used when allocating extents, in an attempt to re-use address space.
|
|
|
|
*
|
|
|
|
* Synchronization: internal.
|
|
|
|
*/
|
|
|
|
ecache_t ecache_dirty;
|
|
|
|
ecache_t ecache_muzzy;
|
|
|
|
ecache_t ecache_retained;
|
|
|
|
};
|
|
|
|
|
2020-03-08 12:14:49 +08:00
|
|
|
#endif /* JEMALLOC_INTERNAL_PA_H */
|