Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
This fork has diverged from the upstream repository.
  • Ben Gamari's avatar
    661da5ee
    nonmoving: Fix handling of weak pointers · 661da5ee
    Ben Gamari authored
    This fixes an interaction between aging and weak pointer handling which
    prevented the finalization of some weak pointers. In particular, weak
    pointers could have their keys incorrectly marked by the preparatory
    collector, preventing their finalization by the subsequent concurrent
    collection.
    
    While in the area, we also significantly improve the assertions
    regarding weak pointers.
    
    Fixes #22327.
    
    (cherry picked from commit 92227b60)
    661da5ee
    History
    nonmoving: Fix handling of weak pointers
    Ben Gamari authored
    This fixes an interaction between aging and weak pointer handling which
    prevented the finalization of some weak pointers. In particular, weak
    pointers could have their keys incorrectly marked by the preparatory
    collector, preventing their finalization by the subsequent concurrent
    collection.
    
    While in the area, we also significantly improve the assertions
    regarding weak pointers.
    
    Fixes #22327.
    
    (cherry picked from commit 92227b60)
RtsStartup.c 19.60 KiB