[svn:parrot] r44464 - trunk/compilers/imcc
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 24 21:01:44 UTC 2010
Author: bacek
Date: Wed Feb 24 21:01:40 2010
New Revision: 44464
URL: https://trac.parrot.org/parrot/changeset/44464
Log:
Use zeroed allocations for constants
Modified:
trunk/compilers/imcc/pbc.c
Modified: trunk/compilers/imcc/pbc.c
==============================================================================
--- trunk/compilers/imcc/pbc.c Wed Feb 24 20:31:05 2010 (r44463)
+++ trunk/compilers/imcc/pbc.c Wed Feb 24 21:01:40 2010 (r44464)
@@ -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