Skip to content

Commit ebb0bca

Browse files
committed
review comments
1 parent aff8812 commit ebb0bca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Objects/longobject.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3627,13 +3627,11 @@ void
36273627
_PyLong_ExactDealloc(PyObject *self)
36283628
{
36293629
assert(PyLong_CheckExact(self));
3630-
#ifndef Py_GIL_DISABLED
36313630
if (_long_is_small_int(self)) {
36323631
// See PEP 683, section Accidental De-Immortalizing for details
36333632
_Py_SetImmortal(self);
36343633
return;
36353634
}
3636-
#endif
36373635
if (_PyLong_IsCompact((PyLongObject *)self)) {
36383636
_Py_FREELIST_FREE(ints, self, PyObject_Free);
36393637
return;
@@ -3644,7 +3642,6 @@ _PyLong_ExactDealloc(PyObject *self)
36443642
static void
36453643
long_dealloc(PyObject *self)
36463644
{
3647-
#ifndef Py_GIL_DISABLED
36483645
if (_long_is_small_int(self)) {
36493646
/* This should never get called, but we also don't want to SEGV if
36503647
* we accidentally decref small Ints out of existence. Instead,
@@ -3655,7 +3652,6 @@ long_dealloc(PyObject *self)
36553652
_Py_SetImmortal(self);
36563653
return;
36573654
}
3658-
#endif
36593655
if (PyLong_CheckExact(self) && _PyLong_IsCompact((PyLongObject *)self)) {
36603656
_Py_FREELIST_FREE(ints, self, PyObject_Free);
36613657
return;

0 commit comments

Comments
 (0)