summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpyb.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-03-08 15:36:53 +0000
committerDamien George <damien.p.george@gmail.com>2016-03-08 15:36:53 +0000
commitdcdf8f2d1404c8a9b6fb91ae1b31c6b991a08017 (patch)
tree21121593088e225a73c32f9bd359540c92128a46 /esp8266/modpyb.c
parentbb293e6bcfbaad6d4fa247c56d62a8af55fd3068 (diff)
downloadmicropython-dcdf8f2d1404c8a9b6fb91ae1b31c6b991a08017.tar.gz
micropython-dcdf8f2d1404c8a9b6fb91ae1b31c6b991a08017.zip
py/objboundmeth: Allocate arg state on stack if heap alloc fails.
If the heap is locked, or memory allocation fails, then calling a bound method will still succeed by allocating the argument state on the stack. The new code also allocates less stack than before if less than 4 arguments are passed. It's also a tiny bit smaller in code size. This was done as part of the ESA project.
Diffstat (limited to 'esp8266/modpyb.c')
0 files changed, 0 insertions, 0 deletions