diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-07-16 23:03:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 23:03:07 (GMT) |
commit | f888636182bcc89a6281c6728484f0a2334a5e14 (patch) | |
tree | 4a63929a73168f7721245675718a9ba56700027a /Python/specialize.c | |
parent | 2e34591f1bcb5713744a5ced8d2fcc448406e464 (diff) | |
download | cpython-f888636182bcc89a6281c6728484f0a2334a5e14.zip cpython-f888636182bcc89a6281c6728484f0a2334a5e14.tar.gz cpython-f888636182bcc89a6281c6728484f0a2334a5e14.tar.bz2 |
[3.13] GH-121583: Remove dependency from pystats.h to internal header file (GH-121880)
(cherry picked from commit f036a463dbc43d25712183dc6afa4e38c1aaf93d)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index 973baf2..1a2043d 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -29,6 +29,10 @@ GCStats _py_gc_stats[NUM_GENERATIONS] = { 0 }; static PyStats _Py_stats_struct = { .gc_stats = _py_gc_stats }; PyStats *_Py_stats = NULL; +#if PYSTATS_MAX_UOP_ID < MAX_UOP_ID +#error "Not enough space allocated for pystats. Increase PYSTATS_MAX_UOP_ID to at least MAX_UOP_ID" +#endif + #define ADD_STAT_TO_DICT(res, field) \ do { \ PyObject *val = PyLong_FromUnsignedLongLong(stats->field); \ |