py/objfun, vm: Add comments on codestate allocation in stackless mode.

This commit is contained in:
Paul Sokolovsky
2017-12-09 10:57:40 +02:00
parent fca1d1aa62
commit d72370def7
2 changed files with 17 additions and 1 deletions

12
py/vm.c
View File

@@ -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