Skip to content
  • Ben Gamari's avatar
    rts/NonMovingSweep: Fix locking of new mutable list allocation · d37352ea
    Ben Gamari authored
    Previously we used allocBlockOnNode_sync in nonmovingSweepMutLists
    despite the fact that we aren't in the GC and therefore the allocation
    spinlock isn't in use. This meant that sweep would end up spinning until
    the next minor GC, when the SM lock was moved away from the SM_MUTEX to
    the spinlock. This isn't a correctness issue but it sure isn't good for
    performance.
    
    Found thanks for Ward.
    
    Fixes #17539.
    
    (cherry picked from commit af247ff861702869843e0d7d9a6b3523135734bb)
    d37352ea