• Ben Gamari's avatar
    nonmoving: Fix collection of sparks · 70d2b995
    Ben Gamari authored
    Previously sparks living in the non-moving heap would be promptly GC'd
    by the minor collector since pruneSparkQueue uses the BF_EVACUATED flag,
    which non-moving heap blocks do not have set.
    Fix this by implementing proper support in pruneSparkQueue for
    determining reachability in the non-moving heap. The story is told in
    Note [Spark management in the nonmoving heap].
Sparks.c 10.4 KB