diff options
author | Jason Evans <jasone@canonware.com> | 2017-03-08 03:52:57 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-03-15 20:13:47 (GMT) |
commit | 38a5bfc8169b018b5b71cc72daad14c3b2f5b206 (patch) | |
tree | e9a32037d9026a9900b234d5ccd07967ad574a3d /include/jemalloc | |
parent | 765edd67b4915a392439a53141606d9e242a6618 (diff) | |
download | jemalloc-38a5bfc8169b018b5b71cc72daad14c3b2f5b206.zip jemalloc-38a5bfc8169b018b5b71cc72daad14c3b2f5b206.tar.gz jemalloc-38a5bfc8169b018b5b71cc72daad14c3b2f5b206.tar.bz2 |
Move arena_t's purging field into arena_decay_t.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/arena_structs_b.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/jemalloc/internal/arena_structs_b.h b/include/jemalloc/internal/arena_structs_b.h index 369b4cd..612b4e7 100644 --- a/include/jemalloc/internal/arena_structs_b.h +++ b/include/jemalloc/internal/arena_structs_b.h @@ -40,6 +40,11 @@ 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 * and/or reused. @@ -200,13 +205,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 * the number of disjoint virtual memory ranges so that extent merging |