[svn:parrot] r44080 - branches/sys_mem_reduce/src

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Feb 17 10:27:57 UTC 2010


Author: bacek
Date: Wed Feb 17 10:27:57 2010
New Revision: 44080
URL: https://trac.parrot.org/parrot/changeset/44080

Log:
Switch to mem_internal allocations of interp->vtable

Modified:
   branches/sys_mem_reduce/src/vtables.c

Modified: branches/sys_mem_reduce/src/vtables.c
==============================================================================
--- branches/sys_mem_reduce/src/vtables.c	Wed Feb 17 10:27:39 2010	(r44079)
+++ branches/sys_mem_reduce/src/vtables.c	Wed Feb 17 10:27:57 2010	(r44080)
@@ -134,7 +134,7 @@
 parrot_alloc_vtables(PARROT_INTERP)
 {
     ASSERT_ARGS(parrot_alloc_vtables)
-    interp->vtables          = mem_allocate_n_zeroed_typed(PARROT_MAX_CLASSES, VTABLE *);
+    interp->vtables          = mem_internal_allocate_n_zeroed_typed(PARROT_MAX_CLASSES, VTABLE *);
     interp->n_vtable_max     = enum_class_core_max;
     interp->n_vtable_alloced = PARROT_MAX_CLASSES - 1;
 }
@@ -162,7 +162,7 @@
 
     /* arrays start at zero, but we compare type numbers starting at 1 */
     interp->n_vtable_alloced = new_max - 1;
-    interp->vtables          = (VTABLE **)mem_sys_realloc_zeroed(
+    interp->vtables          = (VTABLE **)mem_internal_realloc_zeroed(
         interp->vtables, new_size, old_size);
 }
 
@@ -187,7 +187,7 @@
     for (i = 0; i < interp->n_vtable_max; i++)
         Parrot_destroy_vtable(interp, interp->vtables[i]);
 
-    mem_sys_free(interp->vtables);
+    mem_internal_free(interp->vtables);
 }
 
 /*


More information about the parrot-commits mailing list