[svn:parrot] r43364 - branches/boehm_gc/src/gc

bacek at svn.parrot.org bacek at svn.parrot.org
Fri Jan 1 21:21:23 UTC 2010


Author: bacek
Date: Fri Jan  1 21:21:22 2010
New Revision: 43364
URL: https://trac.parrot.org/parrot/changeset/43364

Log:
Don't manually manage memory when Boehm GC enabled.

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	Fri Jan  1 21:05:21 2010	(r43363)
+++ branches/boehm_gc/src/gc/alloc_memory.c	Fri Jan  1 21:21:22 2010	(r43364)
@@ -26,10 +26,11 @@
 
 #ifdef PARROT_HAS_BOEHM_GC
 #  include <gc.h>
-#  define malloc GC_MALLOC_UNCOLLECTABLE
-#  define free   GC_FREE
+#  include <gc_local_alloc.h>
+#  define malloc GC_MALLOC
+#  define free(x) {}
 #  define realloc GC_REALLOC
-#  define calloc(s, n) memset(GC_MALLOC_UNCOLLECTABLE((s)*(n)), 0, (s)*(n))
+#  define calloc(s,n) GC_MALLOC(s*n)
 #endif
 
 PARROT_DOES_NOT_RETURN


More information about the parrot-commits mailing list