[svn:parrot] r44117 - branches/sys_mem_reduce/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 17 20:43:41 UTC 2010
Author: bacek
Date: Wed Feb 17 20:43:41 2010
New Revision: 44117
URL: https://trac.parrot.org/parrot/changeset/44117
Log:
Switch utils to GC allocations.
Modified:
branches/sys_mem_reduce/src/utils.c
Modified: branches/sys_mem_reduce/src/utils.c
==============================================================================
--- branches/sys_mem_reduce/src/utils.c Wed Feb 17 20:43:22 2010 (r44116)
+++ branches/sys_mem_reduce/src/utils.c Wed Feb 17 20:43:41 2010 (r44117)
@@ -845,9 +845,9 @@
/* allocate space for data structures */
/* NOTA: data structures could be kept allocated somewhere waiting to get reused...*/
- c.nb_succ = nb_succ = mem_allocate_n_zeroed_typed(n_regs, int);
- c.backup = backup = mem_allocate_n_zeroed_typed(n_regs, int);
- c.reg_to_index = reg_to_index = mem_allocate_n_zeroed_typed(max_reg, int);
+ c.nb_succ = nb_succ = mem_gc_allocate_n_zeroed_typed(interp, n_regs, int);
+ c.backup = backup = mem_gc_allocate_n_zeroed_typed(interp, n_regs, int);
+ c.reg_to_index = reg_to_index = mem_gc_allocate_n_zeroed_typed(interp, max_reg, int);
/* init backup array */
for (i = 0; i < n_regs; i++)
More information about the parrot-commits
mailing list