[svn:parrot] r49199 - branches/gc_massacre/src/gc
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Tue Sep 21 10:59:36 UTC 2010
Author: mikehh
Date: Tue Sep 21 10:59:36 2010
New Revision: 49199
URL: https://trac.parrot.org/parrot/changeset/49199
Log:
[gc_massacre] add ASSERT_ARGS
Modified:
branches/gc_massacre/src/gc/fixed_allocator.c
Modified: branches/gc_massacre/src/gc/fixed_allocator.c
==============================================================================
--- branches/gc_massacre/src/gc/fixed_allocator.c Tue Sep 21 10:59:24 2010 (r49198)
+++ branches/gc_massacre/src/gc/fixed_allocator.c Tue Sep 21 10:59:36 2010 (r49199)
@@ -297,6 +297,8 @@
static void *
get_free_list_item(ARGMOD(Pool_Allocator *pool))
{
+ ASSERT_ARGS(get_free_list_item)
+
Pool_Allocator_Free_List * const item = pool->free_list;
pool->free_list = item->next;
return item;
@@ -306,6 +308,8 @@
static void *
get_newfree_list_item(ARGMOD(Pool_Allocator *pool))
{
+ ASSERT_ARGS(get_newfree_list_item)
+
Pool_Allocator_Free_List * const item = pool->newfree;
pool->newfree = (Pool_Allocator_Free_List *)
((char *)(pool->newfree) + pool->object_size);
More information about the parrot-commits
mailing list