Convert arena_t's purging field to non-atomic bool.

The decay mutex already protects all accesses.
This commit is contained in:
Jason Evans
2017-03-07 19:18:27 -08:00
parent 75fddc786c
commit 3a2b183d5f
2 changed files with 12 additions and 12 deletions

View File

@@ -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