mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-17 01:15:39 +03:00
Convert arena_t's purging field to non-atomic bool.
The decay mutex already protects all accesses.
This commit is contained in:
parent
75fddc786c
commit
3a2b183d5f
2 changed files with 12 additions and 12 deletions
|
|
@ -167,14 +167,6 @@ struct arena_s {
|
|||
/* Synchronization: atomic. */
|
||||
dss_prec_t dss_prec;
|
||||
|
||||
/*
|
||||
* 1/0 (true/false) if a thread is currently executing
|
||||
* arena_purge_to_limit().
|
||||
*
|
||||
* Synchronization: atomic.
|
||||
*/
|
||||
unsigned purging;
|
||||
|
||||
/*
|
||||
* Number of pages in active extents.
|
||||
*
|
||||
|
|
@ -207,6 +199,13 @@ struct arena_s {
|
|||
extents_t extents_cached;
|
||||
extents_t extents_retained;
|
||||
|
||||
/*
|
||||
* 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