Skip to content

Commit

Permalink
Use correct COLD_EXITS upper bound
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 22, 2024
1 parent e748e8a commit bb71ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ executor_traverse(PyObject *o, visitproc visit, void *arg)
static int
executor_is_gc(PyObject *o)
{
if ((PyObject *)&COLD_EXITS[0] <= o && o < (PyObject *)&COLD_EXITS[UOP_MAX_TRACE_LENGTH]) {
if ((PyObject *)&COLD_EXITS[0] <= o && o < (PyObject *)&COLD_EXITS[COLD_EXIT_COUNT]) {
return 0;
}
return 1;
Expand Down

0 comments on commit bb71ae9

Please sign in to comment.