summaryrefslogtreecommitdiff
path: root/rts/StgStartup.cmm
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-11-05 15:42:27 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-11-12 15:27:02 +0000
commitafd7e22d4082e9f39432dfb18382759652615005 (patch)
treef57b8c880b1edb2d37bef7b0ddef8db176bd1923 /rts/StgStartup.cmm
parente15981a16c832b8cd7dbba676399fd555a379272 (diff)
downloadhaskell-afd7e22d4082e9f39432dfb18382759652615005.tar.gz
assert HpAlloc == 0
Diffstat (limited to 'rts/StgStartup.cmm')
-rw-r--r--rts/StgStartup.cmm9
1 files changed, 5 insertions, 4 deletions
diff --git a/rts/StgStartup.cmm b/rts/StgStartup.cmm
index 5ad2ff6930..dcc038374c 100644
--- a/rts/StgStartup.cmm
+++ b/rts/StgStartup.cmm
@@ -24,10 +24,11 @@
* to the scheduler marking the thread as finished.
*/
-#define CHECK_SENSIBLE_REGS() \
- ASSERT(Hp != 0); \
- ASSERT(Sp != 0); \
- ASSERT(SpLim != 0); \
+#define CHECK_SENSIBLE_REGS() \
+ ASSERT(Hp != 0); \
+ ASSERT(HpAlloc == 0); \
+ ASSERT(Sp != 0); \
+ ASSERT(SpLim != 0); \
ASSERT(SpLim - WDS(RESERVED_STACK_WORDS) <= Sp);
/* -----------------------------------------------------------------------------