[svn:parrot] r44180 - branches/sys_mem_reduce/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Fri Feb 19 13:29:10 UTC 2010
Author: bacek
Date: Fri Feb 19 13:29:09 2010
New Revision: 44180
URL: https://trac.parrot.org/parrot/changeset/44180
Log:
Use gc_realloc in oo.c
Modified:
branches/sys_mem_reduce/src/oo.c
Modified: branches/sys_mem_reduce/src/oo.c
==============================================================================
--- branches/sys_mem_reduce/src/oo.c Fri Feb 19 13:28:52 2010 (r44179)
+++ branches/sys_mem_reduce/src/oo.c Fri Feb 19 13:29:09 2010 (r44180)
@@ -958,9 +958,8 @@
if (type >= mc->mc_size) {
if (mc->idx) {
- mc->idx = (Meth_cache_entry ***)mem_sys_realloc_zeroed(mc->idx,
- sizeof (Meth_cache_entry ***) * (type + 1),
- sizeof (Meth_cache_entry ***) * mc->mc_size);
+ mc->idx = mem_gc_realloc_n_typed_zeroed(interp, mc->idx,
+ type + 1, mc->mc_size, Meth_cache_entry**);
}
else {
mc->idx = mem_gc_allocate_n_zeroed_typed(interp, type + 1, Meth_cache_entry**);
More information about the parrot-commits
mailing list