mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
PAC: Move in decay.
This commit is contained in:
parent
c81e389996
commit
db211eefbf
11 changed files with 58 additions and 58 deletions
|
|
@ -86,13 +86,14 @@ do_alloc_free_purge(void *arg) {
|
|||
bool generated_dirty;
|
||||
pa_dalloc(TSDN_NULL, &test_data->shard, edata,
|
||||
&generated_dirty);
|
||||
malloc_mutex_lock(TSDN_NULL, &test_data->shard.decay_dirty.mtx);
|
||||
malloc_mutex_lock(TSDN_NULL,
|
||||
&test_data->shard.pac.decay_dirty.mtx);
|
||||
pa_decay_all(TSDN_NULL, &test_data->shard,
|
||||
&test_data->shard.decay_dirty,
|
||||
&test_data->shard.pac.decay_dirty,
|
||||
&test_data->stats.decay_dirty,
|
||||
&test_data->shard.pac.ecache_dirty, true);
|
||||
malloc_mutex_unlock(TSDN_NULL,
|
||||
&test_data->shard.decay_dirty.mtx);
|
||||
&test_data->shard.pac.decay_dirty.mtx);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue