[gnome-shell/gnome-3-12] global: Run maybe_gc at leisure again
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-12] global: Run maybe_gc at leisure again
- Date: Mon, 14 Apr 2014 21:15:09 +0000 (UTC)
commit 2f576e3076292941835d2d57d6963519fe4c744c
Author: Adel Gadllah <adel gadllah gmail com>
Date: Mon Apr 14 23:11:30 2014 +0200
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.
src/shell-global.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 336639d..46a1b72 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]