Skip to content
Snippets Groups Projects
Commit dcdf8f2d authored by Damien George's avatar Damien George
Browse files

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.
parent bb293e6b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment