[issue46528] Simplify the VM's stack manipulations
Dennis Sweeney
report at bugs.python.org
Fri Jan 28 13:47:41 EST 2022
Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:
Minor nit: I think swaptimize() should check the for PyMem_Malloc returning NULL here.
// Create an array with elements {0, 1, 2, ..., depth - 1}:
int *stack = PyMem_Malloc(depth * sizeof(int));
for (int i = 0; i < depth; i++) {
stack[i] = i;
}
----------
nosy: +Dennis Sweeney
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46528>
_______________________________________
More information about the Python-bugs-list
mailing list