• Kevin Modzelewski's avatar
    Change generator stack allocation · 7863a419
    Kevin Modzelewski authored
    Previously, we just included a char[] buffer in the generator object,
    and used that as the stack.
    
    Now, mmap() a dedicated stack segment for it.  Use MAP_GROWSDOWN so that
    the stack is automatically expandable, but add a redzone 4MB down to
    limit the maximum stack size.
    7863a419
threading.cpp 17.2 KB