[svn:parrot] r44113 - branches/sys_mem_reduce/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 17 20:42:28 UTC 2010
Author: bacek
Date: Wed Feb 17 20:42:27 2010
New Revision: 44113
URL: https://trac.parrot.org/parrot/changeset/44113
Log:
One more GC allocation in packfile.c
Modified:
branches/sys_mem_reduce/src/packfile.c
Modified: branches/sys_mem_reduce/src/packfile.c
==============================================================================
--- branches/sys_mem_reduce/src/packfile.c Wed Feb 17 20:42:09 2010 (r44112)
+++ branches/sys_mem_reduce/src/packfile.c Wed Feb 17 20:42:27 2010 (r44113)
@@ -3498,7 +3498,7 @@
for (i = 0; i < self->fixup_count; i++) {
PackFile_FixupEntry * const entry =
self->fixups[i] =
- mem_allocate_typed(PackFile_FixupEntry);
+ mem_gc_allocate_zeroed_typed(interp, PackFile_FixupEntry);
entry->type = PF_fetch_opcode(pf, &cursor);
@@ -3558,7 +3558,7 @@
i = self->fixup_count++;
mem_realloc_n_typed(self->fixups, self->fixup_count, PackFile_FixupEntry *);
- self->fixups[i] = mem_allocate_typed(PackFile_FixupEntry);
+ self->fixups[i] = mem_gc_allocate_zeroed_typed(interp, PackFile_FixupEntry);
self->fixups[i]->type = type;
self->fixups[i]->name = mem_sys_strdup(label);
self->fixups[i]->offset = offs;
More information about the parrot-commits
mailing list