• Simon Marlow's avatar
    threadStackOverflow: Tweak to stack chunk sizing · fe0a45ef
    Simon Marlow authored
    If the old stack is only half full, then the next chunk we allocate
    will be twice as large, to accommodate large requests for stack.  In
    that case, make sure that the chunk we allocate is at least as large
    as the usual chunk size - there's no point allocating a 2k chunk
    (double the default initial chunk size of 1k) if in the normal case we
    would allocate a 32k chunk.
Threads.c 25.4 KB