rts/NonMovingSweep: Fix locking of new mutable list allocation

Authored by bgamari on Dec 3 2019, 1:30 PM.

Description

rts/NonMovingSweep: Fix locking of new mutable list allocation

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 Trac #17539.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Dec 5 2019, 3:07 PM
Parents
rGHC70dd0e4b7051: Parenthesize the * kind in TH.Ppr
Branches
Unknown
Tags
Unknown