File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,16 @@ static inline int _PyObject_GC_MAY_BE_TRACKED(PyObject *obj) {
71
71
72
72
#ifdef Py_GIL_DISABLED
73
73
74
+ /* True if an object is shared between multiple threads and
75
+ * needs special purpose when freeing to do the possibility
76
+ * of in-flight lock-free reads occuring */
74
77
static inline int _PyObject_GC_IS_SHARED (PyObject * op ) {
75
78
return (op -> ob_gc_bits & _PyGC_BITS_SHARED ) != 0 ;
76
79
}
77
80
#define _PyObject_GC_IS_SHARED (op ) _PyObject_GC_IS_SHARED(_Py_CAST(PyObject*, op))
78
81
79
- static inline int _PyObject_GC_SET_SHARED (PyObject * op ) {
80
- return op -> ob_gc_bits |= _PyGC_BITS_SHARED ;
82
+ static inline void _PyObject_GC_SET_SHARED (PyObject * op ) {
83
+ op -> ob_gc_bits |= _PyGC_BITS_SHARED ;
81
84
}
82
85
#define _PyObject_GC_SET_SHARED (op ) _PyObject_GC_SET_SHARED(_Py_CAST(PyObject*, op))
83
86
You can’t perform that action at this time.
0 commit comments