[gnome-builder] egg-counter: add workaround for bug 749280



commit b619c985f4b59cdccc977297b52c2738586e0879
Author: Christian Hergert <christian hergert me>
Date:   Tue May 12 13:34:38 2015 -0700

    egg-counter: add workaround for bug 749280
    
    We need to add dynamic growth for counters. Fixing this bug for real
    can be delayed a bit though, since we cna work around quickly.

 contrib/egg/egg-counter.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-counter.c b/contrib/egg/egg-counter.c
index eda1d80..e1edfe0 100644
--- a/contrib/egg/egg-counter.c
+++ b/contrib/egg/egg-counter.c
@@ -153,7 +153,16 @@ _egg_counter_arena_init_local (EggCounterArena *arena)
   gint fd;
   gchar name [32];
 
-  size = page_size = sysconf (_SC_PAGE_SIZE);
+  page_size = sysconf (_SC_PAGE_SIZE);
+
+  /*
+   * FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=749280
+   *
+   * We have some very tricky work ahead of us to add unlimited numbers
+   * of counters at runtime. We basically need to avoid placing counters
+   * that could overlap a page.
+   */
+  size = page_size * 4;
 
   arena->ref_count = 1;
   arena->is_local_arena = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]