Convert arena_t's purging field to non-atomic bool.
The decay mutex already protects all accesses.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user