summaryrefslogtreecommitdiff
path: root/rts/RetainerSet.h
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2013-01-28 11:15:08 -0500
committerSimon Marlow <marlowsd@gmail.com>2013-01-30 10:50:14 +0000
commita23661d242e8dd55007c4aee8a053f35de7705bd (patch)
treee55bb371b52998e870a252de8768aaf4d1de6849 /rts/RetainerSet.h
parent658817bf1b44e9be8a3857c09aae086bef937720 (diff)
downloadhaskell-a23661d242e8dd55007c4aee8a053f35de7705bd.tar.gz
STM: Only wake up once
Previously, threads blocked on an STM retry would be sent a wakeup message each time an unpark was requested. This could result in the accumulation of a large number of wake-up messages, which would slow wake-up once the sleeping thread is finally scheduled. Here, we introduce a new closure type, STM_AWOKEN, which marks a TSO which has been sent a wake-up message, allowing us to send only one wakeup.
Diffstat (limited to 'rts/RetainerSet.h')
0 files changed, 0 insertions, 0 deletions