summaryrefslogtreecommitdiff
path: root/rts/Capability.h
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2018-11-17 07:59:15 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2018-11-17 08:35:33 +0300
commit6677235181ea94311ae2133a7ef8a7decdbf0bb9 (patch)
treef359a8adb820bef55b7fcefec5ae278a4a7c4e2f /rts/Capability.h
parent32e7738bb1a1df5133fd775312e7fb5ae6823099 (diff)
downloadhaskell-6677235181ea94311ae2133a7ef8a7decdbf0bb9.tar.gz
Some assertions and comments in scheduler
Test Plan: I can't validate this because of existing errors with the debug runtime. I'll see if this introduces any new failures. Reviewers: simonmar, bgamari, erikd Reviewed By: simonmar Subscribers: rwbarton, carter Differential Revision: https://phabricator.haskell.org/D5337
Diffstat (limited to 'rts/Capability.h')
-rw-r--r--rts/Capability.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/rts/Capability.h b/rts/Capability.h
index 250ec2219c..05a827c7b9 100644
--- a/rts/Capability.h
+++ b/rts/Capability.h
@@ -264,7 +264,10 @@ typedef enum {
//
typedef struct {
SyncType type; // The kind of synchronisation
- bool *idle;
+ bool *idle; // Array of size n_capabilities. idle[i] is true
+ // if capability i will be idle during this GC
+ // cycle. Only available when doing GC (when
+ // type is SYNC_GC_*).
Task *task; // The Task performing the sync
} PendingSync;