[svn:parrot] r44082 - branches/sys_mem_reduce/src/dynpmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 17 10:28:37 UTC 2010
Author: bacek
Date: Wed Feb 17 10:28:36 2010
New Revision: 44082
URL: https://trac.parrot.org/parrot/changeset/44082
Log:
Switch GDBMHash PMC to GC allocations
Modified:
branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc
Modified: branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc
==============================================================================
--- branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc Wed Feb 17 10:28:15 2010 (r44081)
+++ branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc Wed Feb 17 10:28:36 2010 (r44082)
@@ -101,13 +101,13 @@
VTABLE void init() {
Parrot_GDBMHash_attributes *attrs = PARROT_GDBMHASH(SELF);
- attrs->db_handle = mem_allocate_zeroed_typed(GDBM_FH);
+ attrs->db_handle = gc_mem_allocate_zeroed_typed(INTERP, GDBM_FH);
PObj_custom_destroy_SET(SELF);
}
VTABLE void destroy() {
Parrot_GDBMHash_attributes *attrs = PARROT_GDBMHASH(SELF);
- mem_sys_free(attrs->db_handle);
+ gc_mem_free(INTERP, attrs->db_handle);
PMC_data(SELF) = NULL;
}
More information about the parrot-commits
mailing list