Skip to content
Snippets Groups Projects
Commit 520f3563 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/main: When preparing sys.path, allocate exact strings on uPy heap.

Due to the way modern compilers work (allocating space for stack vars once
at tha start of function, and deallocating once on exit from), using
intermediate stack buffer of big size caused blockage of 4K (PATH_MAX)
on stack for the entire duration of MicroPython execution.
parent 649b69a1
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment