8000 gh-127119: Remove check on accidental deallocation of immortal objects for free-threaded build by eendebakpt · Pull Request #127120 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127119: Remove check on accidental deallocation of immortal objects for free-threaded build #127120

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
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter
8000

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
Prev Previous commit
Next Next commit
avoid warnings in release builds by using Py_DEBUG
  • Loading branch information
eendebakpt committed Nov 22, 2024
commit d8c318d9251cf3f0f277df3b3af2fb49ec699c84
3 changes: 3 additions & 0 deletions Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3611,6 +3611,8 @@ long_richcompare(PyObject *self, PyObject *other, int op)
Py_RETURN_RICHCOMPARE(result, 0, op);
}


#ifdef Py_DEBUG
static int _is_python_smallint(PyObject *op)
{
PyLongObject *pylong = (PyLongObject*)op;
Expand All @@ -3625,6 +3627,7 @@ static int _is_python_smallint(PyObject *op)
}
return 0;
}
#endif

static void
long_dealloc(PyObject *self)
Expand Down
Loading
0