diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-06-15 13:19:21 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-06-15 13:19:21 +0100 |
commit | 5d9e686c30a00be08a04d9fd1c860994153a1f7a (patch) | |
tree | bb936fc014778ac7dbaebf1277c1d95472842c30 /rts/Weak.c | |
parent | 9e4348ec5de43ff540cc9e3c21e5aade8e2d5a61 (diff) | |
download | haskell-5d9e686c30a00be08a04d9fd1c860994153a1f7a.tar.gz |
Optimization for takeMVar/putMVar when MVar left empty; fixes #7923
We only need to apply the write barrier to an MVar when it acquires
a reference to live data; when the MVar is left empty in the case
of a takeMVar/putMVar, we can save a memory reference.
Patch from Edward Z. Yang.
Diffstat (limited to 'rts/Weak.c')
0 files changed, 0 insertions, 0 deletions