diff options
author | Jason Evans <jasone@canonware.com> | 2017-03-07 17:22:33 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-03-15 20:13:47 (GMT) |
commit | 765edd67b4915a392439a53141606d9e242a6618 (patch) | |
tree | 181cfb02613f4c56bbd8332cf3f4a3b41c6cdfc1 /include/jemalloc | |
parent | ee202efc79d650e16e3ecb1569efccbc5666e116 (diff) | |
download | jemalloc-765edd67b4915a392439a53141606d9e242a6618.zip jemalloc-765edd67b4915a392439a53141606d9e242a6618.tar.gz jemalloc-765edd67b4915a392439a53141606d9e242a6618.tar.bz2 |
Refactor decay-related function parametrization.
Refactor most of the decay-related functions to take as parameters the
decay_t and associated extents_t structures to operate on. This
prepares for supporting both lazy and forced purging on different decay
schedules.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/arena_structs_b.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/jemalloc/internal/arena_structs_b.h b/include/jemalloc/internal/arena_structs_b.h index 84c179e..369b4cd 100644 --- a/include/jemalloc/internal/arena_structs_b.h +++ b/include/jemalloc/internal/arena_structs_b.h @@ -175,13 +175,6 @@ struct arena_s { size_t nactive; /* - * Decay-based purging state. - * - * Synchronization: lock. - */ - arena_decay_t decay; - - /* * Extant large allocations. * * Synchronization: large_mtx. @@ -200,6 +193,13 @@ struct arena_s { extents_t extents_retained; /* + * Decay-based purging state. + * + * Synchronization: internal. + */ + arena_decay_t decay; + + /* * True if a thread is currently executing arena_purge_to_limit(). * * Synchronization: decay.mtx. |