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 ce2f515 commit 8d48e23Copy full SHA for 8d48e23
Objects/object.c
@@ -2475,12 +2475,16 @@ new_reference(PyObject *op)
2475
{
2476
// Skip the immortal object check in Py_SET_REFCNT; always set refcnt to 1
2477
#if !defined(Py_GIL_DISABLED)
2478
+#if SIZEOF_VOID_P > 4
2479
op->ob_refcnt_full = 1;
2480
assert(op->ob_refcnt == 1);
2481
assert(op->ob_flags == 0);
2482
+#else
2483
+ op->ob_refcnt = 1;
2484
+#endif
2485
#else
2486
op->ob_tid = _Py_ThreadId();
- op->_padding = 0;
2487
+ op->ob_flags = 0;
2488
op->ob_mutex = (PyMutex){ 0 };
2489
op->ob_gc_bits = 0;
2490
op->ob_ref_local = 1;
0 commit comments