summaryrefslogtreecommitdiff
path: root/glib/gslist.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/gslist.c')
-rw-r--r--glib/gslist.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/glib/gslist.c b/glib/gslist.c
index 8b20a3d3a..ef5615f67 100644
--- a/glib/gslist.c
+++ b/glib/gslist.c
@@ -17,6 +17,13 @@
* Boston, MA 02111-1307, USA.
*/
+/*
+ * Modified by the GLib Team and others 1997-1999. See the AUTHORS
+ * file for a list of people on the GLib Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GLib at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
/*
* MT safe
*/
@@ -35,7 +42,7 @@ struct _GAllocator /* from gmem.c */
GSList *free_lists; /* implementation specific */
};
-G_LOCK_DECLARE_STATIC (current_allocator);
+G_LOCK_DEFINE_STATIC (current_allocator);
static GAllocator *current_allocator = NULL;
/* HOLDS: current_allocator_lock */
@@ -102,7 +109,7 @@ g_slist_alloc (void)
if (!current_allocator)
{
GAllocator *allocator = g_allocator_new ("GLib default GSList allocator",
- 1024);
+ 128);
g_slist_validate_allocator (allocator);
allocator->last = NULL;
current_allocator = allocator;