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

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Feb 17 07:51:09 UTC 2010


Author: bacek
Date: Wed Feb 17 07:51:09 2010
New Revision: 44075
URL: https://trac.parrot.org/parrot/changeset/44075

Log:
Switch RSA to use GC allocations

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

Modified: branches/sys_mem_reduce/src/pmc/resizablestringarray.pmc
==============================================================================
--- branches/sys_mem_reduce/src/pmc/resizablestringarray.pmc	Wed Feb 17 07:50:50 2010	(r44074)
+++ branches/sys_mem_reduce/src/pmc/resizablestringarray.pmc	Wed Feb 17 07:51:09 2010	(r44075)
@@ -241,8 +241,7 @@
             }
 
             SET_ATTR_str_array(INTERP, SELF,
-                    (STRING **)mem_sys_realloc(
-                        str_array, cur * sizeof (STRING*)));
+                    gc_mem_realloc_n_typed_zeroed(INTERP, str_array, cur, STRING*));
             GET_ATTR_str_array(INTERP, SELF, str_array);
 
             for (; i < cur; i++)


More information about the parrot-commits mailing list