summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2013-09-07 17:53:34 -0400
committerAustin Seipp <austin@well-typed.com>2013-10-25 09:14:29 -0500
commit7de07eb78c10217c87f0f6a4c12ef2927d044e00 (patch)
tree6306c7ac1e55216aaf24d431c745fcab318fbfb4 /rts
parent72f8b8d694362890a424f5fa21fef37cee921ecf (diff)
downloadhaskell-7de07eb78c10217c87f0f6a4c12ef2927d044e00.tar.gz
rts: Print correct stack size on stack overflow
This requires that stackOverflow() in RtsUtils.c be passed a reference to the current TSO. This requires a small change in libraries/base.
Diffstat (limited to 'rts')
-rw-r--r--rts/RtsUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c
index b06b6af962..185f1e8bdd 100644
--- a/rts/RtsUtils.c
+++ b/rts/RtsUtils.c
@@ -114,12 +114,12 @@ stgFree(void* p)
-------------------------------------------------------------------------- */
void
-stackOverflow(void)
+stackOverflow(StgTSO* tso)
{
- StackOverflowHook(RtsFlags.GcFlags.maxStkSize * sizeof(W_));
+ StackOverflowHook(tso->tot_stack_size * sizeof(W_));
#if defined(TICKY_TICKY)
- if (RtsFlags.TickyFlags.showTickyStats) PrintTickyInfo();
+ if (RtsFlags.TickyFlags.showTickyStats) PrintTickyInfo();
#endif
}