Skip to content
  • Duncan Coutts's avatar
    Add assertion of the invariant for the spark counters · ddb47a91
    Duncan Coutts authored
    The invariant is: created = converted + remaining + gcd + fizzled
    Since sparks move between capabilities, we have to aggregate the
    counters over all capabilities. This in turn means we can only check
    the invariant at stable points where all but one capabilities are
    stopped. We can do this at shutdown time and before and after a global
    synchronised GC.
    ddb47a91