• Ben Gamari's avatar
    rts: Reset STATIC_LINK field of reverted CAFs · 17b084af
    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>
    (cherry picked from commit 2a960c3a)
    17b084af
GCAux.c 4.14 KB