mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-06 22:07:17 +03:00
Move arena_t's purging field into arena_decay_t.
This commit is contained in:
parent
765edd67b4
commit
38a5bfc816
2 changed files with 9 additions and 12 deletions
|
|
@ -39,6 +39,11 @@ struct arena_bin_info_s {
|
|||
struct arena_decay_s {
|
||||
/* Synchronizes all non-atomic fields. */
|
||||
malloc_mutex_t mtx;
|
||||
/*
|
||||
* True if a thread is currently purging the extents associated with
|
||||
* this decay structure.
|
||||
*/
|
||||
bool purging;
|
||||
/*
|
||||
* Approximate time in seconds from the creation of a set of unused
|
||||
* dirty pages until an equivalent set of unused dirty pages is purged
|
||||
|
|
@ -199,13 +204,6 @@ struct arena_s {
|
|||
*/
|
||||
arena_decay_t decay;
|
||||
|
||||
/*
|
||||
* True if a thread is currently executing arena_purge_to_limit().
|
||||
*
|
||||
* Synchronization: decay.mtx.
|
||||
*/
|
||||
bool purging;
|
||||
|
||||
/*
|
||||
* Next extent size class in a growing series to use when satisfying a
|
||||
* request via the extent hooks (only if !config_munmap). This limits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue