[svn:parrot] r44066 - branches/sys_mem_reduce/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Feb 17 07:18:48 UTC 2010


Author: bacek
Date: Wed Feb 17 07:18:47 2010
New Revision: 44066
URL: https://trac.parrot.org/parrot/changeset/44066

Log:
Switch FIA to use GC allocations.

Modified:
   branches/sys_mem_reduce/src/pmc/fixedintegerarray.pmc

Modified: branches/sys_mem_reduce/src/pmc/fixedintegerarray.pmc
==============================================================================
--- branches/sys_mem_reduce/src/pmc/fixedintegerarray.pmc	Wed Feb 17 07:18:22 2010	(r44065)
+++ branches/sys_mem_reduce/src/pmc/fixedintegerarray.pmc	Wed Feb 17 07:18:47 2010	(r44066)
@@ -57,7 +57,7 @@
         INTVAL* int_array;
         GET_ATTR_int_array(INTERP, SELF, int_array);
         if (int_array)
-            mem_sys_free(int_array);
+            Parrot_gc_free_memory_chunk(INTERP, int_array);
     }
 
 /*
@@ -92,7 +92,7 @@
 
             GET_ATTR_size(INTERP, SELF, size);
 
-            dest_int_array = mem_allocate_n_typed(size, INTVAL);
+            dest_int_array = gc_mem_allocate_n_typed(INTERP, size, INTVAL);
             SET_ATTR_size(INTERP, dest, size);
             SET_ATTR_int_array(INTERP, dest, dest_int_array);
 


More information about the parrot-commits mailing list