[Git][ghc/ghc][master] rts: Fix RetainerProfile early return with TREC_CHUNK

Marge Bot gitlab at gitlab.haskell.org
Sun Jun 9 22:48:41 UTC 2019



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
8e60e3f0 by Daniel Gröber at 2019-06-09T22:48:38Z
rts: Fix RetainerProfile early return with TREC_CHUNK

When pop() returns with `*c == NULL` retainerProfile will immediately
return. All other code paths is pop() continue with the next stackElement
when this happens so it seems weird to me that TREC_CHUNK we would suddenly
abort everything even though the stack might still have elements left to
process.

- - - - -


1 changed file:

- rts/RetainerProfile.c


Changes:

=====================================
rts/RetainerProfile.c
=====================================
@@ -849,7 +849,7 @@ pop( StgClosure **c, StgClosure **cp, retainer *r )
             if (entry_no == ((StgTRecChunk *)se->c)->next_entry_idx) {
                 *c = NULL;
                 popOff();
-                return;
+                break;
             }
             entry = &((StgTRecChunk *)se->c)->entries[entry_no];
             if (field_no == 0) {



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/8e60e3f0c6c1482f448dd4d24d716d34046503e9

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/8e60e3f0c6c1482f448dd4d24d716d34046503e9
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190609/2f85bec9/attachment.html>


More information about the ghc-commits mailing list