mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
py/objfun, vm: Add comments on codestate allocation in stackless mode.
This commit is contained in:
12
py/vm.c
12
py/vm.c
@@ -937,6 +937,9 @@ unwind_jump:;
|
||||
deep_recursion_error:
|
||||
mp_exc_recursion_depth();
|
||||
}
|
||||
#else
|
||||
// If we couldn't allocate codestate on heap, in
|
||||
// non non-strict case fall thru to stack allocation.
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
@@ -974,6 +977,9 @@ unwind_jump:;
|
||||
else {
|
||||
goto deep_recursion_error;
|
||||
}
|
||||
#else
|
||||
// If we couldn't allocate codestate on heap, in
|
||||
// non non-strict case fall thru to stack allocation.
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
@@ -1008,6 +1014,9 @@ unwind_jump:;
|
||||
else {
|
||||
goto deep_recursion_error;
|
||||
}
|
||||
#else
|
||||
// If we couldn't allocate codestate on heap, in
|
||||
// non non-strict case fall thru to stack allocation.
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
@@ -1045,6 +1054,9 @@ unwind_jump:;
|
||||
else {
|
||||
goto deep_recursion_error;
|
||||
}
|
||||
#else
|
||||
// If we couldn't allocate codestate on heap, in
|
||||
// non non-strict case fall thru to stack allocation.
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user