[svn:parrot] r44177 - branches/sys_mem_reduce/src

bacek at svn.parrot.org bacek at svn.parrot.org
Fri Feb 19 13:28:06 UTC 2010


Author: bacek
Date: Fri Feb 19 13:28:05 2010
New Revision: 44177
URL: https://trac.parrot.org/parrot/changeset/44177

Log:
Switch pbc_dump to GC allocations

Modified:
   branches/sys_mem_reduce/src/pbc_dump.c

Modified: branches/sys_mem_reduce/src/pbc_dump.c
==============================================================================
--- branches/sys_mem_reduce/src/pbc_dump.c	Fri Feb 19 13:27:45 2010	(r44176)
+++ branches/sys_mem_reduce/src/pbc_dump.c	Fri Feb 19 13:28:05 2010	(r44177)
@@ -290,7 +290,7 @@
 
         size = PackFile_pack_size(interp,
                 interp->code->base.pf) * sizeof (opcode_t);
-        pack = (opcode_t*) mem_sys_allocate(size);
+        pack = (opcode_t*) Parrot_gc_allocate_memory_chunk(interp, size);
         if (!pack) {
             printf("out of mem\n");
             exit(EXIT_FAILURE);
@@ -308,7 +308,7 @@
             exit(EXIT_FAILURE);
         }
         fclose(fp);
-        mem_sys_free(pack);
+        Parrot_gc_free_memory_chunk(interp, pack);
         Parrot_exit(interp, 0);
     }
 


More information about the parrot-commits mailing list