Remove thin arena_* deferral/decay wrappers; call pa directly.

This commit is contained in:
guangli-dai
2026-07-05 18:01:41 -07:00
committed by Guangli Dai
parent f1f0792370
commit d410f43e1f
8 changed files with 35 additions and 85 deletions

View File

@@ -380,7 +380,8 @@ background_work_sleep_once(
* work that caused this thread to wake up is scheduled for.
*/
if (!slept_indefinitely) {
arena_do_deferred_work(tsdn, arena);
pa_shard_do_deferred_work(tsdn, &arena->pa_shard,
/* is_background_thread */ true);
}
if (ns_until_deferred <= BACKGROUND_THREAD_MIN_INTERVAL_NS) {
/* Min interval will be used. */