global: Run maybe_gc at leisure again
The deadlocks are now fixed this should keep memory usage low, avoid memory fragmentation and prevent the gc from running at inconvient times.
This commit is contained in:
parent
60d7c3ad86
commit
2f576e3076
@ -1401,6 +1401,10 @@ run_leisure_functions (gpointer data)
|
||||
if (global->work_count > 0)
|
||||
return FALSE;
|
||||
|
||||
/* This will help avoid both heap fragmentation,
|
||||
and the GC kicking in when we don't want it to. */
|
||||
gjs_context_maybe_gc (global->js_context);
|
||||
|
||||
/* No leisure closures, so we are done */
|
||||
if (global->leisure_closures == NULL)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user