File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3646,18 +3646,18 @@ _PyLong_ExactDealloc(PyObject *self)
3646
3646
static void
3647
3647
long_dealloc (PyObject * self )
3648
3648
{
3649
- #ifndef Py_GIL_DISABLED
3650
3649
if (_long_is_small_int (self )) {
3651
3650
/* This should never get called, but we also don't want to SEGV if
3652
3651
* we accidentally decref small Ints out of existence. Instead,
3653
3652
* since small Ints are immortal, re-set the reference count.
3654
3653
*
3655
3654
* See PEP 683, section Accidental De-Immortalizing for details
3656
3655
*/
3656
+ printf ("rare event: dealloc of small int\n" );
3657
+ exit (1 );
3657
3658
_Py_SetImmortal (self );
3658
3659
return ;
3659
3660
}
3660
- #endif
3661
3661
if (PyLong_CheckExact (self ) && _PyLong_IsCompact ((PyLongObject * )self )) {
3662
3662
_Py_FREELIST_FREE (ints , self , PyObject_Free );
3663
3663
return ;
You can’t perform that action at this time.
0 commit comments