FIX (partially) #2703: bug in stack overflow handling when inside block
authorSimon Marlow <marlowsd@gmail.com>
Mon, 20 Oct 2008 12:11:03 +0000 (12:11 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 20 Oct 2008 12:11:03 +0000 (12:11 +0000)
commitcd22cec99074fe9a4005c8d7b2de227fca285798
treeec3066561887248b3c69680c81bfebb0fe310b18
parent8690b84f0bbcae6351d1a664d96db9bc60b81b0f
FIX (partially) #2703: bug in stack overflow handling when inside block
As a result of a previous ticket (#767) we disabled the generation of
StackOverflow exceptions when inside a Control.Exception.block, on the
grounds that StackOverflow is like an asynchronous exception.  Instead
we just increase the stack size.  However, the stack size calculation
was wrong, and ended up not increasing the size of the stack, with the
result that the runtime just kept re-allocating the stack and filling
up memory.
rts/Schedule.c