[svn:parrot] r44116 - branches/sys_mem_reduce/config/gen/platform/generic

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Feb 17 20:43:23 UTC 2010


Author: bacek
Date: Wed Feb 17 20:43:22 2010
New Revision: 44116
URL: https://trac.parrot.org/parrot/changeset/44116

Log:
Switch platform.exec to GC allocations.

Modified:
   branches/sys_mem_reduce/config/gen/platform/generic/exec.c

Modified: branches/sys_mem_reduce/config/gen/platform/generic/exec.c
==============================================================================
--- branches/sys_mem_reduce/config/gen/platform/generic/exec.c	Wed Feb 17 20:43:01 2010	(r44115)
+++ branches/sys_mem_reduce/config/gen/platform/generic/exec.c	Wed Feb 17 20:43:22 2010	(r44116)
@@ -106,7 +106,7 @@
         int status, i;
         STRING *s;
         char   *cmd;
-        char  **argv = mem_allocate_n_typed((len+1), char*);
+        char  **argv = mem_gc_allocate_n_typed(interp, (len+1), char*);
 
         for (i = 0; i < len; ++i) {
             s = VTABLE_get_string_keyed_int(interp, cmdargs, i);


More information about the parrot-commits mailing list