[svn:parrot] r47298 - branches/gc_massacre/src/gc
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Wed Jun 2 12:25:56 UTC 2010
Author: mikehh
Date: Wed Jun 2 12:25:55 2010
New Revision: 47298
URL: https://trac.parrot.org/parrot/changeset/47298
Log:
add ASSERT_ARGS
Modified:
branches/gc_massacre/src/gc/pool_allocator.c
Modified: branches/gc_massacre/src/gc/pool_allocator.c
==============================================================================
--- branches/gc_massacre/src/gc/pool_allocator.c Wed Jun 2 12:16:17 2010 (r47297)
+++ branches/gc_massacre/src/gc/pool_allocator.c Wed Jun 2 12:25:55 2010 (r47298)
@@ -97,6 +97,8 @@
void
Parrot_gc_destroy_pool_alloctor(PARROT_INTERP, ARGMOD(Pool_Allocator *pool))
{
+ ASSERT_ARGS(Parrot_gc_destroy_pool_alloctor)
+
Pool_Allocator_Arena *arena = pool->top_arena;
while (arena) {
@@ -226,6 +228,8 @@
static size_t
arena_size(ARGIN(const Pool_Allocator *self))
{
+ ASSERT_ARGS(arena_size)
+
const size_t num_items = self->objects_per_alloc;
const size_t item_size = self->object_size;
const size_t item_space = item_size * num_items;
More information about the parrot-commits
mailing list