[svn:parrot] r48321 - branches/gc_massacre/src/gc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Wed Aug 4 21:23:42 UTC 2010


Author: chromatic
Date: Wed Aug  4 21:23:42 2010
New Revision: 48321
URL: https://trac.parrot.org/parrot/changeset/48321

Log:
[GC] Added preliminary growth factor to ms2 GC.

Modified:
   branches/gc_massacre/src/gc/gc_ms2.c

Modified: branches/gc_massacre/src/gc/gc_ms2.c
==============================================================================
--- branches/gc_massacre/src/gc/gc_ms2.c	Wed Aug  4 16:30:15 2010	(r48320)
+++ branches/gc_massacre/src/gc/gc_ms2.c	Wed Aug  4 21:23:42 2010	(r48321)
@@ -879,10 +879,8 @@
     gc_ms2_sweep_pool(interp, self->pmc_allocator, self->objects, gc_ms2_sweep_pmc_cb);
     gc_ms2_sweep_pool(interp, self->string_allocator, self->strings, gc_ms2_sweep_string_cb);
 
-    /* Wait more next time
-    FIXME With such simplistic approach we reach multigigabyte liveset of objects
-    self->gc_threshold *= UNITS_PER_ALLOC_GROWTH_FACTOR;
-     */
+    if (self->gc_threshold < 1024 * 1024 * 10)
+        self->gc_threshold *= 1.1;
 
     self->stats.header_allocs_since_last_collect = 0;
     self->stats.gc_mark_runs++;


More information about the parrot-commits mailing list