summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2019-02-05 11:01:10 -0500
committerBen Gamari <ben@smart-cactus.org>2019-10-18 15:26:53 -0400
commit206f782a69ce8b0be7a39570abc09dfdf1514f18 (patch)
tree094918b93911e806edb39eff3e5537c1c71d1a7d /includes
parent113950379c2d945397d30f89f4fda0080eac112b (diff)
downloadhaskell-206f782a69ce8b0be7a39570abc09dfdf1514f18.tar.gz
rts: Give stack flags proper macros
This were previously quite unclear and will change a bit under the non-moving collector so let's clear this up now.
Diffstat (limited to 'includes')
-rw-r--r--includes/rts/storage/TSO.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/rts/storage/TSO.h b/includes/rts/storage/TSO.h
index 93018581fd..63d2a11e8e 100644
--- a/includes/rts/storage/TSO.h
+++ b/includes/rts/storage/TSO.h
@@ -185,6 +185,11 @@ typedef struct StgTSO_ {
} *StgTSOPtr; // StgTSO defined in rts/Types.h
+
+#define STACK_DIRTY 1
+// used by sanity checker to verify that all dirty stacks are on the mutable list
+#define STACK_SANE 64
+
typedef struct StgStack_ {
StgHeader header;
StgWord32 stack_size; // stack size in *words*