Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.13] gh-127599: Fix _Py_RefcntAdd missing calls to _Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (GH-127717) #127963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions 6 Include/cpython/pystats.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
//
// Define _PY_INTERPRETER macro to increment interpreter_increfs and
// interpreter_decrefs. Otherwise, increment increfs and decrefs.
//
// The number of incref operations counted by `incref` and
// `interpreter_incref` is the number of increment operations, which is
// not equal to the total of all reference counts. A single increment
// operation may increase the reference count of an object by more than
// one. For example, see `_Py_RefcntAdd`.

#ifndef Py_CPYTHON_PYSTATS_H
# error "this header file must not be included directly"
Expand Down
5 changes: 5 additions & 0 deletions 5 Include/internal/pycore_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
static inline void _Py_RefcntAdd(PyObject* op, Py_ssize_t n)
{
if (_Py_IsImmortal(op)) {
_Py_INCREF_IMMORTAL_STAT_INC();

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.3.2)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.3.2)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.1.7)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.1.7)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.2.3)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.2.3)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.0.15)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (ubuntu-24.04, 3.0.15)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / build and test (arm64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check warning on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Windows / build and test (x64)

'_Py_INCREF_IMMORTAL_STAT_INC' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]

Check failure on line 134 in Include/internal/pycore_object.h

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-aarch64)

implicit declaration of function ‘_Py_INCREF_IMMORTAL_STAT_INC’ [-Werror=implicit-function-declaration]
return;
}
#ifdef Py_REF_DEBUG
Expand All @@ -155,6 +156,10 @@
_Py_atomic_add_ssize(&op->ob_ref_shared, (n << _Py_REF_SHARED_SHIFT));
}
#endif
// Although the ref count was increased by `n` (which may be greater than 1)
// it is only a single increment (i.e. addition) operation, so only 1 refcnt
// increment operation is counted.
_Py_INCREF_STAT_INC();
}
#define _Py_RefcntAdd(op, n) _Py_RefcntAdd(_PyObject_CAST(op), n)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix statistics for increments of object reference counts (in particular, when
a reference count was increased by more than 1 in a single operation).
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.