mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
HPA: Do deferred operations on background threads.
This commit is contained in:
committed by
David Goldblatt
parent
583284f2d9
commit
1d4a7666d5
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user