[svn:parrot] r43752 - branches/gc_encapsulate/src/gc

bacek at svn.parrot.org bacek at svn.parrot.org
Sun Feb 7 07:55:01 UTC 2010


Author: bacek
Date: Sun Feb  7 07:55:00 2010
New Revision: 43752
URL: https://trac.parrot.org/parrot/changeset/43752

Log:
Temporary poke into GC MS to support timely destruction of PMCs.

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

Modified: branches/gc_encapsulate/src/gc/api.c
==============================================================================
--- branches/gc_encapsulate/src/gc/api.c	Sun Feb  7 07:54:35 2010	(r43751)
+++ branches/gc_encapsulate/src/gc/api.c	Sun Feb  7 07:55:00 2010	(r43752)
@@ -1049,9 +1049,9 @@
 {
     ASSERT_ARGS(Parrot_gc_pmc_needs_early_collection)
     PObj_needs_early_gc_SET(pmc);
-#if 0
-    ++interp->mem_pools->num_early_gc_PMCs;
-#endif
+    // XXX Temporary hack. We have to encapsulate it in GC_Subsystem.
+    Memory_Pools *mem_pools = (Memory_Pools*)interp->gc_sys->gc_private;
+    ++mem_pools->num_early_gc_PMCs;
 }
 
 


More information about the parrot-commits mailing list