summaryrefslogtreecommitdiff
path: root/rts/Schedule.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-03-02 11:13:14 -0500
committerBen Gamari <ben@smart-cactus.org>2018-03-02 11:16:47 -0500
commit8dab89b4d148d322cd7ac8c374be3342ab017297 (patch)
tree5d2898f650fdc1390cafa12dc337138301adf253 /rts/Schedule.c
parente261b8523eb547b93b8b9e194bc2566350e7cc60 (diff)
downloadhaskell-8dab89b4d148d322cd7ac8c374be3342ab017297.tar.gz
rts: Note functions which must take all_tasks_mutex.
Diffstat (limited to 'rts/Schedule.c')
-rw-r--r--rts/Schedule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c
index cdb9659d83..b8306df39f 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -2005,6 +2005,7 @@ forkProcess(HsStablePtr *entry
RELEASE_LOCK(&task->lock);
#if defined(THREADED_RTS)
+ /* N.B. releaseCapability_ below may need to take all_tasks_mutex */
RELEASE_LOCK(&all_tasks_mutex);
#endif