Skip to content
  • Simon Marlow's avatar
    Don't shortcut SRTs for static functions (#15544) · 28356f21
    Simon Marlow authored and Ben Gamari's avatar Ben Gamari committed
    Shortcutting the SRT for a static function can lead to resurrecting a
    static object at runtime, which violates assumptions in the GC. See
    comments for details.
    
    Test Plan:
    - manual testing (in progress)
    - validate
    
    Reviewers: osa1, bgamari, erikd
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, carter
    
    GHC Trac Issues: #15544
    
    Differential Revision: https://phabricator.haskell.org/D5145
    
    (cherry picked from commit a324dfdf3b505ea30d134dc8183d7b4bb441ced4)
    28356f21