summaryrefslogtreecommitdiffstatshomepage
path: root/py/malloc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-02-23 13:44:29 +0000
committerDamien George <damien.p.george@gmail.com>2016-02-23 13:44:29 +0000
commitd6c558c0aae53d3cd5f8871394f44bd23836307e (patch)
tree56a79cf639f7ccf3afa6e22a059daebb09bd5c2f /py/malloc.c
parentadd930c4b5baa029d454f78c6c6a14093b1d902f (diff)
downloadmicropython-d6c558c0aae53d3cd5f8871394f44bd23836307e.tar.gz
micropython-d6c558c0aae53d3cd5f8871394f44bd23836307e.zip
py/parse: Use m_renew_maybe to ensure that memory is shrunk in-place.
The chunks of memory that the parser allocates contain parse nodes and are pointed to from many places, so these chunks cannot be relocated by the memory manager. This patch makes it so that when a chunk is shrunk to fit, it is not relocated.
Diffstat (limited to 'py/malloc.c')
0 files changed, 0 insertions, 0 deletions