summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-11-14 20:10:30 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-12-16 16:12:45 -0500
commit3d2a7e08aee0c00f0c0b7d6fefcb827ef9a86595 (patch)
tree104201c919247826c789c737413283fbdd3c7f4a
parent1cf13bd0c7cbfc97fe0ec86e6860992dc6e849a5 (diff)
downloadhaskell-3d2a7e08aee0c00f0c0b7d6fefcb827ef9a86595.tar.gz
rts: Style fix
-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