mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 17:47:22 +03:00
HPA: Do deferred operations on background threads.
This commit is contained in:
parent
583284f2d9
commit
1d4a7666d5
12 changed files with 256 additions and 7 deletions
12
src/pa.c
12
src/pa.c
|
|
@ -208,3 +208,15 @@ ssize_t
|
|||
pa_decay_ms_get(pa_shard_t *shard, extent_state_t state) {
|
||||
return pac_decay_ms_get(&shard->pac, state);
|
||||
}
|
||||
|
||||
void
|
||||
pa_shard_set_deferral_allowed(tsdn_t *tsdn, pa_shard_t *shard,
|
||||
bool deferral_allowed) {
|
||||
hpa_shard_set_deferral_allowed(tsdn, &shard->hpa_shard,
|
||||
deferral_allowed);
|
||||
}
|
||||
|
||||
void
|
||||
pa_shard_do_deferred_work(tsdn_t *tsdn, pa_shard_t *shard) {
|
||||
hpa_shard_do_deferred_work(tsdn, &shard->hpa_shard);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue