Fix bug in readMVar implementation: keep clean MVars clean.

Authored by ezyang on Jul 17 2013, 5:49 PM.

Description

Fix bug in readMVar implementation: keep clean MVars clean.

The readMVar implementation had only partially implemented
a micro-optimization which allows us to avoid adding an MVar
to the mutable list if the MVar was not changed. However,
this was not applied to the release method on the fast path,
resulting in dirty MVars which were not added to the mutable list.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>

Details

Committed
ezyangJul 17 2013, 5:49 PM
Pushed
bgamariAug 25 2016, 1:39 PM
Parents
rGHCDIFF18087a119b47: Add support for byte endian swapping for Word 16/32/64.
Branches
Unknown
Tags
Unknown