[svn:parrot] r43292 - branches/boehm_gc/src/gc
bacek at svn.parrot.org
bacek at svn.parrot.org
Mon Dec 28 22:33:08 UTC 2009
Author: bacek
Date: Mon Dec 28 22:33:08 2009
New Revision: 43292
URL: https://trac.parrot.org/parrot/changeset/43292
Log:
Use Boehm GC in mem_sys_* functions
Modified:
branches/boehm_gc/src/gc/alloc_memory.c
Modified: branches/boehm_gc/src/gc/alloc_memory.c
==============================================================================
--- branches/boehm_gc/src/gc/alloc_memory.c Mon Dec 28 22:32:48 2009 (r43291)
+++ branches/boehm_gc/src/gc/alloc_memory.c Mon Dec 28 22:33:08 2009 (r43292)
@@ -24,6 +24,14 @@
#include "parrot/parrot.h"
#include "parrot/memory.h"
+#ifdef PARROT_HAS_BOEHM_GC
+ #include <gc.h>
+ #define malloc GC_MALLOC
+ #define free GC_FREE
+ #define realloc GC_REALLOC
+ #define calloc(s,n) GC_MALLOC(s*n)
+#endif
+
PARROT_DOES_NOT_RETURN
static void failed_allocation(unsigned int line, unsigned long size) /* HEADERIZER SKIP */
{
More information about the parrot-commits
mailing list