Skip to content
  • Simon Marlow's avatar
    Fix gcCAFs() · e431d75f
    Simon Marlow authored and Ben Gamari's avatar Ben Gamari committed
    The test here should have been changed after D1106.  It was harmless
    but we caught fewer GC'd CAFs than we should have.
    
    Test Plan:
    Using `nofib/imaginary/primes` compiled with `-debug`.
    
    Before:
    ```
    > ./primes 100 +RTS -G1 -A32k -DG
    CAF gc'd at 0x0x7b0960
    CAF gc'd at 0x0x788728
    CAF gc'd at 0x0x790db0
    CAF gc'd at 0x0x790de0
    12 CAFs live
    CAF gc'd at 0x0x788880
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    547
    CAF gc'd at 0x0x7995c8
    13 CAFs live
    ```
    
    After:
    
    ```
    > ./primes 100 +RTS -G1 -A32k -DG
    CAF gc'd at 0x0x7b0960
    CAF gc'd at 0x0x788728
    CAF gc'd at 0x0x790db0
    CAF gc'd at 0x0x790de0
    12 CAFs live
    CAF gc'd at 0x0x788880
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    12 CAFs live
    547
    CAF gc'd at 0x0x7995c8
    CAF gc'd at 0x0x790ea0
    12 CAFs live
    ```
    
    Reviewers: bgamari, osa1, erikd, noamz
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4963
    e431d75f