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 <firstname.lastname@example.org>
Showing with 2 additions and 2 deletions