File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -3044,17 +3044,14 @@ _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op)
30443044 _PyObject_ASSERT (op , Py_REFCNT (op ) == 0 );
30453045 PyTypeObject * tp = Py_TYPE (op );
30463046 assert (tp -> tp_flags & Py_TPFLAGS_HAVE_GC );
3047- uintptr_t tagged_ptr ;
3047+ int tracked = 0 ;
30483048 if (tp -> tp_is_gc == NULL || tp -> tp_is_gc (op )) {
3049- int tracked = _PyObject_GC_IS_TRACKED (op );
3049+ tracked = _PyObject_GC_IS_TRACKED (op );
30503050 if (tracked ) {
30513051 _PyObject_GC_UNTRACK (op );
30523052 }
3053- tagged_ptr = ((uintptr_t )tstate -> delete_later ) | tracked ;
3054- }
3055- else {
3056- tagged_ptr = ((uintptr_t )tstate -> delete_later );
30573053 }
3054+ uintptr_t tagged_ptr = ((uintptr_t )tstate -> delete_later ) | tracked ;
30583055#ifdef Py_GIL_DISABLED
30593056 op -> ob_tid = tagged_ptr ;
30603057#else
You can’t perform that action at this time.
0 commit comments