mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 21:40:34 +02:00
MMC and PCC defer actual page-out operations to background thread
Should avoid excessive VM traffic when allocating large objects, or when the adaptive heap sizer is on and we see frequent expansions and resizes.
This commit is contained in:
parent
d785f082b1
commit
7984f60eae
6 changed files with 184 additions and 76 deletions
|
@ -139,7 +139,7 @@ gc_make_adaptive_heap_sizer(double expansiveness,
|
|||
sizer->last_bytes_allocated = get_allocation_counter(callback_data);
|
||||
sizer->last_heartbeat = gc_platform_monotonic_nanoseconds();
|
||||
sizer->background_task_id = thread
|
||||
? gc_background_thread_add_task(thread, GC_BACKGROUND_TASK_FIRST,
|
||||
? gc_background_thread_add_task(thread, GC_BACKGROUND_TASK_MIDDLE,
|
||||
gc_adaptive_heap_sizer_background_task,
|
||||
sizer)
|
||||
: -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue