summaryrefslogtreecommitdiff
path: root/glib/gnode.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@src.gnome.org>1999-03-07 01:44:10 +0000
committerJeff Garzik <jgarzik@src.gnome.org>1999-03-07 01:44:10 +0000
commita6ab9d0a6b6a2cfbf7fd2052cff6be7bc961b786 (patch)
treeb467388c0d5053a9f0f1541771580339948564b4 /glib/gnode.c
parent975c085b1e78d55c579342c2cf71e9aa9475e067 (diff)
downloadglib-GLIB_1_3_HACKS.tar.gz
merge from HEADGLIB_1_3_HACKS
Diffstat (limited to 'glib/gnode.c')
-rw-r--r--glib/gnode.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/glib/gnode.c b/glib/gnode.c
index 23245b348..5145c6bd6 100644
--- a/glib/gnode.c
+++ b/glib/gnode.c
@@ -20,6 +20,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
*/
@@ -39,7 +46,7 @@ struct _GAllocator /* from gmem.c */
GNode *free_nodes; /* implementation specific */
};
-G_LOCK_DECLARE_STATIC (current_allocator);
+G_LOCK_DEFINE_STATIC (current_allocator);
static GAllocator *current_allocator = NULL;
/* HOLDS: current_allocator_lock */
@@ -108,7 +115,7 @@ g_node_new (gpointer data)
if (!current_allocator)
{
GAllocator *allocator = g_allocator_new ("GLib default GNode allocator",
- 1024);
+ 128);
g_node_validate_allocator (allocator);
allocator->last = NULL;
current_allocator = allocator;