summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-03-08 03:18:27 (GMT)
committerJason Evans <jasone@canonware.com>2017-03-10 18:14:30 (GMT)
commit3a2b183d5fe86132d0830f720b3b8dbd6a29f7e9 (patch)
treecb68395de0d1a89585492aeec176e73c1aeb615f /include/jemalloc
parent75fddc786c9d5476cab1d5d4699e95d8907d0b51 (diff)
downloadjemalloc-3a2b183d5fe86132d0830f720b3b8dbd6a29f7e9.zip
jemalloc-3a2b183d5fe86132d0830f720b3b8dbd6a29f7e9.tar.gz
jemalloc-3a2b183d5fe86132d0830f720b3b8dbd6a29f7e9.tar.bz2
Convert arena_t's purging field to non-atomic bool.
The decay mutex already protects all accesses.
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/arena_structs_b.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/jemalloc/internal/arena_structs_b.h b/include/jemalloc/internal/arena_structs_b.h
index ba8bb8a..84c179e 100644
--- a/include/jemalloc/internal/arena_structs_b.h
+++ b/include/jemalloc/internal/arena_structs_b.h
@@ -168,14 +168,6 @@ struct arena_s {
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.
*
* Synchronization: atomic.
@@ -208,6 +200,13 @@ struct arena_s {
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
* the number of disjoint virtual memory ranges so that extent merging