Change generator stack allocation
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.
Showing
test/tests/stack_limits.py
0 → 100644
Please register or sign in to comment