Skip to content

Commit

Permalink
add check for no-gil build
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Dec 22, 2024
1 parent 3c3eddc commit a912b8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3641,13 +3641,11 @@ _PyLong_ExactDealloc(PyObject *self)
{
assert(PyLong_CheckExact(self));
if (_PyLong_IsCompact((PyLongObject *)self)) {
#ifndef Py_GIL_DISABLED
if (compact_int_is_small(self)) {
// See PEP 683, section Accidental De-Immortalizing for details
_Py_SetImmortal(self);
return;
}
#endif
_Py_FREELIST_FREE(ints, self, PyObject_Free);
return;
}
Expand Down

0 comments on commit a912b8f

Please sign in to comment.