Commit d3b24e10 authored by Ben Gamari's avatar Ben Gamari Committed by Austin Seipp

rts: Allow for infinite stack size

This is encoded as RtsFlags.GcFlags.maxStkSize == 0.
parent 8f3ea7d7
......@@ -499,7 +499,8 @@ threadStackOverflow (Capability *cap, StgTSO *tso)
if (tso->tot_stack_size >= RtsFlags.GcFlags.maxStkSize) {
if (RtsFlags.GcFlags.maxStkSize > 0
&& tso->tot_stack_size >= RtsFlags.GcFlags.maxStkSize) {
// #3677: In a stack overflow situation, stack squeezing may
// reduce the stack size, but we don't know whether it has been
// reduced enough for the stack check to succeed if we try
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment