mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-13 16:36:21 +03:00
Convert arena_maybe_purge() recursion to iteration.
This resolves #235.
This commit is contained in:
parent
dc0610a714
commit
0a9f9a4d51
2 changed files with 28 additions and 11 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue