Make sure all calls to g_node_validate_allocator are within

Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>

	* gnode.c glist.c gslist.c: Make sure all
	calls to g_node_validate_allocator are within
	current_allocator lock, so we have consistency
	on that point. (Should not really matter,
	but this way we match the comments)

	* glist.c (g_list_free_1): Removed some lines
	that should never have been committed. (For
	debugging)
This commit is contained in:
Owen Taylor
1998-12-15 15:40:01 +00:00
committed by Owen Taylor
parent 931ea95265
commit dcd0c664b7
15 changed files with 114 additions and 19 deletions

View File

@@ -70,8 +70,8 @@ g_list_validate_allocator (GAllocator *allocator)
void
g_list_push_allocator(GAllocator *allocator)
{
g_list_validate_allocator ( allocator );
g_lock (current_allocator);
g_list_validate_allocator ( allocator );
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);
@@ -136,7 +136,6 @@ g_list_alloc (void)
void
g_list_free (GList *list)
{
#if 0
if (list)
{
list->data = list->next;
@@ -145,13 +144,11 @@ g_list_free (GList *list)
current_allocator->free_lists = list;
g_unlock (current_allocator);
}
#endif
}
void
g_list_free_1 (GList *list)
{
#if 0
if (list)
{
list->data = NULL;
@@ -160,7 +157,6 @@ g_list_free_1 (GList *list)
current_allocator->free_lists = list;
g_unlock (current_allocator);
}
#endif
}
GList*