mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
In a non-thread build, using &_ram_end as the top-of-stack is no longer correct because the stack is not always at the very top end of RAM. See eg04c7cdb668and3786592097. The correct value to use is &_estack, which is the value stored in MP_STATE_THREAD(stack_top), and using the same code for both thread and non-thread builds makes the code cleaner.