Skip to content

Commit 8bb12ef

Browse files
committed
Avoid overflow gathering stats
1 parent 33837a7 commit 8bb12ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/cpython/pystats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# error "this header file must not be included directly"
3030
#endif
3131

32-
#define PYSTATS_MAX_UOP_ID 1024
32+
#define PYSTATS_MAX_UOP_ID 1500
3333

3434
#define SPECIALIZATION_FAILURE_KINDS 60
3535

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ GCStats _py_gc_stats[NUM_GENERATIONS] = { 0 };
3333
static PyStats _Py_stats_struct = { .gc_stats = _py_gc_stats };
3434
PyStats *_Py_stats = NULL;
3535

36-
#if PYSTATS_MAX_UOP_ID < MAX_UOP_ID
36+
#if PYSTATS_MAX_UOP_ID < MAX_UOP_REGS_ID
3737
#error "Not enough space allocated for pystats. Increase PYSTATS_MAX_UOP_ID to at least MAX_UOP_ID"
3838
#endif
3939

0 commit comments

Comments
 (0)