Skip to content
  • Jessica Clarke's avatar
    Untag the potential AP_STACK in stg_getApStackValzh · b6204f70
    Jessica Clarke authored and Ben Gamari's avatar Ben Gamari committed
    If the AP_STACK has been evaluated and a GC has run, the BLACKHOLE
    indirection will have been removed, and the StablePtr for the original
    AP_STACK referred to be GHCi will therefore now point directly to the
    value, and may be tagged. Add a hist002 test for this, and make sure
    hist001 doesn't do an idle GC, so the case when it's still a BLACKHOLE
    is definitely also tested.
    
    Reviewers: austin, bgamari, erikd, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D4099
    b6204f70