Skip to content
Snippets Groups Projects
Commit d85044f6 authored by Austin Seipp's avatar Austin Seipp
Browse files

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: default avatarBen Gamari <bgamari.foss@gmail.com>
Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
parent c73d372b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment