summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2018-06-05 22:04:30 -0500
committerJeff Epler <jepler@unpythonic.net>2018-06-05 22:04:55 -0500
commita4e06bd998a1fb2d2dd209524d8ccd69b18712e6 (patch)
treeffdc8bff8d277d86809703fb72c00ce9a338c609 /shared-module
parent74ced174cec7aebe8852e8308dfac10ecde2bd19 (diff)
main: Explicitly set the stack top based on _estack
.. setting it based on the ad-hoc stack pointer calculation of mp_stack_ctrl_init() meant that the stack used above main() counts against the 1KiB safety factor that the mp_stack_set_limit call tries to establish. It turns out, at least on M4, that over half of the safety factor is used up by stack-above-main()! In the case of the basics/gen_stack_overflow.py test, which blows the stack on purpose, it turns out that gc would be called while handling the "maximum recursion depth exceeded" error, and this needed more stack than was left. Closes: #900
Diffstat (limited to 'shared-module')
0 files changed, 0 insertions, 0 deletions