[svn:parrot] r48459 - branches/unshared_buffers/src/gc

darbelo at svn.parrot.org darbelo at svn.parrot.org
Fri Aug 13 17:08:09 UTC 2010


Author: darbelo
Date: Fri Aug 13 17:08:08 2010
New Revision: 48459
URL: https://trac.parrot.org/parrot/changeset/48459

Log:
Remove a check for a condition that can't be true.

Modified:
   branches/unshared_buffers/src/gc/alloc_resources.c

Modified: branches/unshared_buffers/src/gc/alloc_resources.c
==============================================================================
--- branches/unshared_buffers/src/gc/alloc_resources.c	Fri Aug 13 17:07:42 2010	(r48458)
+++ branches/unshared_buffers/src/gc/alloc_resources.c	Fri Aug 13 17:08:08 2010	(r48459)
@@ -327,14 +327,10 @@
 
             if (interp->gc_sys->sys_type != INF) {
                 /* Compact the pool if allowed and worthwhile */
-                if (pool->compact) {
-                    /* don't bother reclaiming if it's only a small amount */
-                    if ((pool->possibly_reclaimable * pool->reclaim_factor +
-                         pool->guaranteed_reclaimable) > size) {
-                        (*pool->compact) (interp, mem_pools, pool);
-                    }
-                }
+                if (pool->compact)
+                   (*pool->compact) (interp, mem_pools, pool);
             }
+
         }
         if (pool->top_block->free < size) {
             if (pool->minimum_block_size < 65536 * 16)


More information about the parrot-commits mailing list