Issue 1542016: inconsistency in PCALL conditional code in ceval.c (original) (raw)
While there are macros to profile PCALL_POP, the reporting of it via sys.callstats() is broken.
This patch solves it.
Index: Python/ceval.c
--- Python/ceval.c (revisión: 51339) +++ Python/ceval.c (copia de trabajo) @@ -186,10 +186,10 @@ PyObject * PyEval_GetCallStats(PyObject *self) {
return Py_BuildValue("iiiiiiiiii",
return Py_BuildValue("iiiiiiiiiii", pcall[0], pcall[1],
pcall[2], pcall[3], pcall[4], pcall[5], pcall[6], pcall[7],
pcall[8], pcall[9]);
pcall[8], pcall[9],
pcall[10]); } #else #define PCALL(O)