diff options
author | Jason Evans <jasone@canonware.com> | 2015-06-23 01:50:32 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-06-23 01:50:58 (GMT) |
commit | 0a9f9a4d511e0c3343ff26e04d9592fefd96c2bc (patch) | |
tree | 39eb3985e55a9cbee05d9dc7f87c7cf4c6102b91 /include/jemalloc | |
parent | dc0610a714c1ff207bf87ba907506ae0b111e092 (diff) | |
download | jemalloc-0a9f9a4d511e0c3343ff26e04d9592fefd96c2bc.zip jemalloc-0a9f9a4d511e0c3343ff26e04d9592fefd96c2bc.tar.gz jemalloc-0a9f9a4d511e0c3343ff26e04d9592fefd96c2bc.tar.bz2 |
Convert arena_maybe_purge() recursion to iteration.
This resolves #235.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/arena.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h index 6f3c77c..58d87cb 100644 --- a/include/jemalloc/internal/arena.h +++ b/include/jemalloc/internal/arena.h @@ -316,6 +316,9 @@ struct arena_s { /* Minimum ratio (log base 2) of nactive:ndirty. */ ssize_t lg_dirty_mult; + /* True if a thread is currently executing arena_purge(). */ + bool purging; + /* Number of pages in active runs and huge regions. */ size_t nactive; |