Skip to content

Commit

Permalink
Add braces for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Lynagh committed Jun 15, 2013
1 parent fe652a8 commit 4ca8642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rts/RetainerProfile.c
Expand Up @@ -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.
Expand Down

0 comments on commit 4ca8642

Please sign in to comment.