Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    b0d6bf2a
    rts: Reset STATIC_LINK field of reverted CAFs · b0d6bf2a
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    When we revert a CAF we must reset the STATIC_LINK field lest the GC
    might ignore the CAF (e.g. as it carries the STATIC_FLAG_LIST flag) and
    will consequently overlook references to object code that we are trying
    to unload. This would result in the reachable object code being
    unloaded. See Note [CAF lists] and Note [STATIC_LINK fields].
    
    This fixes #16842.
    
    Idea-due-to: Phuong Trinh <lolotp@fb.com>
    b0d6bf2a
    History
    rts: Reset STATIC_LINK field of reverted CAFs
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    When we revert a CAF we must reset the STATIC_LINK field lest the GC
    might ignore the CAF (e.g. as it carries the STATIC_FLAG_LIST flag) and
    will consequently overlook references to object code that we are trying
    to unload. This would result in the reachable object code being
    unloaded. See Note [CAF lists] and Note [STATIC_LINK fields].
    
    This fixes #16842.
    
    Idea-due-to: Phuong Trinh <lolotp@fb.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.