Default to infinite stack size (#8189)
authorAustin Seipp <aseipp@pobox.com>
Sun, 8 Sep 2013 07:08:45 +0000 (02:08 -0500)
committerAustin Seipp <aseipp@pobox.com>
Sun, 8 Sep 2013 08:55:06 +0000 (03:55 -0500)
commitd85044f6b201eae0a9e453b89c0433608e0778f0
tree2ef70aed38ac9ee9b0c7dc3f1cdf8a8e79091c11
parentc73d372bfebb5acee45e196d4e8694b656c7fd82
Default to infinite stack size (#8189)

When servicing a stack overflows, only throw an exception to the given
thread if the user explicitly set a max stack size, using +RTS -K.
Otherwise just service it normally and grow the stack.

In case we actually run out of *heap* (stack chuncks are allocated on
the heap), then we need to bail by calling the stackOverflow() hook and
exit immediately.

Authored-by: Ben Gamari <bgamari.foss@gmail.com>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
docs/users_guide/runtime_control.xml
includes/Rts.h
includes/rts/Constants.h
includes/rts/storage/GC.h
rts/RtsFlags.c
rts/RtsUtils.c
rts/Schedule.c
rts/Threads.c
rts/sm/Storage.c