#define PYSTATS_MAX_UOP_ID 512
-#define SPECIALIZATION_FAILURE_KINDS 50
+#define SPECIALIZATION_FAILURE_KINDS 60
/* Stats for determining who is calling PyEval_EvalFrame */
#define EVAL_CALL_TOTAL 0
#define SPECIALIZATION_FAIL(opcode, kind) \
do { \
if (_Py_stats) { \
- _Py_stats->opcode_stats[opcode].specialization.failure_kinds[kind]++; \
+ int _kind = (kind); \
+ assert(_kind < SPECIALIZATION_FAILURE_KINDS); \
+ _Py_stats->opcode_stats[opcode].specialization.failure_kinds[_kind]++; \
} \
} while (0)