[svn:parrot] r48464 - branches/unshared_buffers/src/gc
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Fri Aug 13 17:10:07 UTC 2010
Author: darbelo
Date: Fri Aug 13 17:10:07 2010
New Revision: 48464
URL: https://trac.parrot.org/parrot/changeset/48464
Log:
Properly nest checks.
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:09:47 2010 (r48463)
+++ branches/unshared_buffers/src/gc/alloc_resources.c Fri Aug 13 17:10:07 2010 (r48464)
@@ -500,12 +500,13 @@
Memory_Block *old_block = Buffer_pool(b);
/* Skip mostly full blocks, think of them as pre-compacted */
- if (!is_block_almost_full(old_block))
+ if (!is_block_almost_full(old_block)) {
cur_spot = move_one_buffer(interp, new_block, b, cur_spot);
- /* If that was the last buffer on this block, free it */
- if (old_block->freed + old_block->free == old_block->size)
- free_mem_block(mem_pools, old_block);
+ /* If that was the last buffer on this block, free it */
+ if (old_block->freed + old_block->free == old_block->size)
+ free_mem_block(mem_pools, old_block);
+ }
}
b = (Buffer *)((char *)b + object_size);
More information about the parrot-commits
mailing list