[commit: ghc] master: Add braces for clarity (4ca8642)
Ian Lynagh
igloo at earth.li
Sat Jun 15 18:33:13 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/4ca864277ce94b65e8be41e2ba929a7157f37f1b
>---------------------------------------------------------------
commit 4ca864277ce94b65e8be41e2ba929a7157f37f1b
Author: Ian Lynagh <ian at well-typed.com>
Date: Sat Jun 15 16:41:21 2013 +0100
Add braces for clarity
>---------------------------------------------------------------
rts/RetainerProfile.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rts/RetainerProfile.c b/rts/RetainerProfile.c
index 10a947d..77dc77c 100644
--- a/rts/RetainerProfile.c
+++ b/rts/RetainerProfile.c
@@ -1768,9 +1768,10 @@ computeRetainerSet( void )
// The following code assumes that WEAK objects are considered to be roots
// for retainer profilng.
for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
- for (weak = generations[g].weak_ptr_list; weak != NULL; weak = weak->link)
+ for (weak = generations[g].weak_ptr_list; weak != NULL; weak = weak->link) {
// retainRoot((StgClosure *)weak);
retainRoot(NULL, (StgClosure **)&weak);
+ }
}
// Consider roots from the stable ptr table.
More information about the ghc-commits
mailing list