Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

objboundmeth.c

  • Damien George's avatar
    dcdf8f2d
    py/objboundmeth: Allocate arg state on stack if heap alloc fails. · dcdf8f2d
    Damien George authored
    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.
    dcdf8f2d
    History
    py/objboundmeth: Allocate arg state on stack if heap alloc fails.
    Damien George authored
    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.