summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/sm/GC.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index 2c1b680864..19cb0fe31d 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -833,12 +833,9 @@ GarbageCollect (uint32_t collect_gen,
live_blocks += genLiveBlocks(gen);
// add in the partial blocks in the gen_workspaces
- {
- uint32_t i;
- for (i = 0; i < getNumCapabilities(); i++) {
- live_words += gcThreadLiveWords(i, gen->no);
- live_blocks += gcThreadLiveBlocks(i, gen->no);
- }
+ for (uint32_t i = 0; i < getNumCapabilities(); i++) {
+ live_words += gcThreadLiveWords(i, gen->no);
+ live_blocks += gcThreadLiveBlocks(i, gen->no);
}
} // for all generations