summaryrefslogtreecommitdiff
path: root/utils
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 /utils
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 'utils')
-rw-r--r--utils/deriveConstants/Main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index 54533254dd..f6f590715b 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -307,6 +307,9 @@ wanteds os = concat
"sizeofW(StgHeader) - sizeofW(StgProfHeader)"
,constantWord Both "PROF_HDR_SIZE" "sizeofW(StgProfHeader)"
+ -- Stack flags for C--
+ ,constantWord C "STACK_DIRTY" "STACK_DIRTY"
+
-- Size of a storage manager block (in bytes).
,constantWord Both "BLOCK_SIZE" "BLOCK_SIZE"
,constantWord C "MBLOCK_SIZE" "MBLOCK_SIZE"