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

bacek at svn.parrot.org bacek at svn.parrot.org
Mon Dec 28 22:14:17 UTC 2009


Author: bacek
Date: Mon Dec 28 22:14:17 2009
New Revision: 43289
URL: https://trac.parrot.org/parrot/changeset/43289

Log:
Reinitialize pools in Parrot_gc_switch.

Modified:
   branches/boehm_gc/src/gc/api.c

Modified: branches/boehm_gc/src/gc/api.c
==============================================================================
--- branches/boehm_gc/src/gc/api.c	Mon Dec 28 22:13:57 2009	(r43288)
+++ branches/boehm_gc/src/gc/api.c	Mon Dec 28 22:14:17 2009	(r43289)
@@ -386,6 +386,10 @@
 {
     ASSERT_ARGS(Parrot_gc_switch)
 
+    /* Don't switch into default */
+    if (gc == PARROT_GC_DEFAULT_TYPE)
+        return;
+
     /* Finalize old GC */
     Parrot_gc_finalize(interp);
 
@@ -405,6 +409,9 @@
         break;
     }
 
+    initialize_var_size_pools(interp);
+    initialize_fixed_size_pools(interp);
+    Parrot_gc_initialize_fixed_size_pools(interp, GC_NUM_INITIAL_FIXED_SIZE_POOLS);
 }
 
 /*


More information about the parrot-commits mailing list