[svn:parrot] r44311 - branches/boehm_gc_2/compilers/imcc
bacek at svn.parrot.org
bacek at svn.parrot.org
Mon Feb 22 21:34:12 UTC 2010
Author: bacek
Date: Mon Feb 22 21:34:11 2010
New Revision: 44311
URL: https://trac.parrot.org/parrot/changeset/44311
Log:
Use zeroed allocations for constants
Modified:
branches/boehm_gc_2/compilers/imcc/pbc.c
Modified: branches/boehm_gc_2/compilers/imcc/pbc.c
==============================================================================
--- branches/boehm_gc_2/compilers/imcc/pbc.c Mon Feb 22 21:33:52 2010 (r44310)
+++ branches/boehm_gc_2/compilers/imcc/pbc.c Mon Feb 22 21:34:11 2010 (r44311)
@@ -357,11 +357,11 @@
/* Update the constant count and reallocate */
if (interp->code->const_table->constants)
interp->code->const_table->constants =
- mem_gc_realloc_n_typed(interp, interp->code->const_table->constants,
- newcount, PackFile_Constant *);
+ mem_gc_realloc_n_typed_zeroed(interp, interp->code->const_table->constants,
+ newcount, oldcount, PackFile_Constant *);
else
interp->code->const_table->constants =
- mem_gc_allocate_n_typed(interp, newcount, PackFile_Constant *);
+ mem_gc_allocate_n_zeroed_typed(interp, newcount, PackFile_Constant *);
interp->code->const_table->constants[oldcount] = new_constant;
interp->code->const_table->const_count = newcount;
More information about the parrot-commits
mailing list