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

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Feb 17 20:42:45 UTC 2010


Author: bacek
Date: Wed Feb 17 20:42:44 2010
New Revision: 44114
URL: https://trac.parrot.org/parrot/changeset/44114

Log:
Switch VTABLE allocations to mem_internal.

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 20:42:27 2010	(r44113)
+++ branches/sys_mem_reduce/src/vtables.c	Wed Feb 17 20:42:44 2010	(r44114)
@@ -43,7 +43,7 @@
 Parrot_new_vtable(SHIM_INTERP)
 {
     ASSERT_ARGS(Parrot_new_vtable)
-    return mem_allocate_zeroed_typed(VTABLE);
+    return mem_internal_allocate_zeroed_typed(VTABLE);
 }
 
 /*
@@ -63,7 +63,7 @@
 Parrot_clone_vtable(PARROT_INTERP, ARGIN(const VTABLE *base_vtable))
 {
     ASSERT_ARGS(Parrot_clone_vtable)
-    VTABLE * const new_vtable = mem_allocate_typed(VTABLE);
+    VTABLE * const new_vtable = mem_internal_allocate_typed(VTABLE);
 
     STRUCT_COPY(new_vtable, base_vtable);
 
@@ -108,7 +108,7 @@
             ro_vtable->isa_hash = NULL;
         }
 
-        mem_sys_free(ro_vtable);
+        mem_internal_free(ro_vtable);
         vtable->ro_variant_vtable = NULL;
     }
 
@@ -117,7 +117,7 @@
         vtable->isa_hash = NULL;
     }
 
-    mem_sys_free(vtable);
+    mem_internal_free(vtable);
 }
 
 /*


More information about the parrot-commits mailing list