[svn:parrot] r42005 - trunk/src/gc
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Thu Oct 22 01:09:05 UTC 2009
Author: whiteknight
Date: Thu Oct 22 01:09:04 2009
New Revision: 42005
URL: https://trac.parrot.org/parrot/changeset/42005
Log:
[gc] fix a small issue that would prevent this from building if GC_USE_FIXED_SIZE_ALLOCATOR is 0
Modified:
trunk/src/gc/api.c
Modified: trunk/src/gc/api.c
==============================================================================
--- trunk/src/gc/api.c Thu Oct 22 00:59:24 2009 (r42004)
+++ trunk/src/gc/api.c Thu Oct 22 01:09:04 2009 (r42005)
@@ -1613,8 +1613,8 @@
Parrot_gc_allocate_pmc_attributes(PARROT_INTERP, ARGMOD(PMC *pmc))
{
ASSERT_ARGS(Parrot_gc_allocate_pmc_attributes)
-#if GC_USE_FIXED_SIZE_ALLOCATOR
const size_t attr_size = pmc->vtable->attr_size;
+#if GC_USE_FIXED_SIZE_ALLOCATOR
PMC_Attribute_Pool * const pool = Parrot_gc_get_attribute_pool(interp,
attr_size);
void * const attrs = Parrot_gc_get_attributes_from_pool(interp, pool);
@@ -1622,7 +1622,7 @@
PMC_data(pmc) = attrs;
return attrs;
#else
- void * const data = mem_sys_allocate_zeroed(new_vtable->attr_size);
+ void * const data = mem_sys_allocate_zeroed(attr_size);
PMC_data(pmc) = data;
return data;
#endif
More information about the parrot-commits
mailing list