We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 561e2d5 commit 184841aCopy full SHA for 184841a
Include/objimpl.h
@@ -303,9 +303,10 @@ extern PyGC_Head *_PyGC_generation0;
303
*/
304
#define _PyObject_GC_UNTRACK(o) do { \
305
PyGC_Head *g = _Py_AS_GC(o); \
306
+ PyGC_Head *prev = _PyGCHead_PREV(g); \
307
assert(g->gc.gc_next != NULL); \
- _PyGCHead_PREV(g)->gc.gc_next = g->gc.gc_next; \
308
- _PyGCHead_SET_PREV(g->gc.gc_next, _PyGCHead_PREV(g)); \
+ prev->gc.gc_next = g->gc.gc_next; \
309
+ _PyGCHead_SET_PREV(g->gc.gc_next, prev); \
310
g->gc.gc_next = NULL; \
311
g->gc.gc_prev &= _PyGC_PREV_MASK_FINALIZED; \
312
} while (0);
0 commit comments