Skip to content
  • Ben Gamari's avatar
    rts: Reset STATIC_LINK field of reverted CAFs · 2a960c3a
    Ben Gamari authored
    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>
    2a960c3a