Searched refs:_PyObject_ASSERT (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Python/ |
D | gc.c | 426 _PyObject_ASSERT(op, gc_get_refs(gc) != 0); in update_refs() 436 _PyObject_ASSERT(_PyObject_CAST(parent), !_PyObject_IsFreed(op)); in visit_decref() 492 _PyObject_ASSERT(op, gc->_gc_next != 0); in visit_reachable() 505 _PyObject_ASSERT(FROM_GC(prev), in visit_reachable() 507 _PyObject_ASSERT(FROM_GC(next), in visit_reachable() 664 _PyObject_ASSERT( in move_legacy_finalizers() 674 _PyObject_ASSERT(op, gc->_gc_next & NEXT_MASK_UNREACHABLE); in move_legacy_finalizers() 689 _PyObject_ASSERT( in clear_unreachable_mask() 692 _PyObject_ASSERT( in clear_unreachable_mask() 698 _PyObject_ASSERT((PyObject*)FROM_GC(gc), gc->_gc_next & NEXT_MASK_UNREACHABLE); in clear_unreachable_mask() [all …]
|
D | gc_free_threading.c | 407 _PyObject_ASSERT(op, refcount >= 0); in update_refs() 449 _PyObject_ASSERT(op, _PyObject_GC_IS_TRACKED(op)); in visit_clear_unreachable() 506 _PyObject_ASSERT(op, gc_is_unreachable(op)); in validate_gc_objects() 701 _PyObject_ASSERT((PyObject *)wr, wr->wr_object == op); in clear_weakrefs() 703 _PyObject_ASSERT((PyObject *)wr, wr->wr_object == Py_None); in clear_weakrefs() 730 _PyObject_ASSERT(op, PyWeakref_Check(op)); in call_weakref_callbacks() 734 _PyObject_ASSERT(op, callback != NULL); in call_weakref_callbacks() 832 _PyObject_ASSERT(op, gc_is_unreachable(op)); in delete_garbage() 955 _PyObject_ASSERT(op, gc_refs >= 0); in handle_resurrected_objects() 972 _PyObject_ASSERT(op, Py_REFCNT(op) > 1); in handle_resurrected_objects() [all …]
|
/external/python/cpython3/Objects/ |
D | object.c | 570 _PyObject_ASSERT(self, in PyObject_CallFinalizerFromDealloc() 1400 _PyObject_ASSERT(name, Py_REFCNT(name) >= 1); in PyObject_SetAttr() 1446 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_ComputedDictPointer() 1447 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_ComputedDictPointer() 2790 _PyObject_ASSERT(op, _PyObject_IS_GC(op)); in _PyTrash_thread_deposit_object() 2791 _PyObject_ASSERT(op, !_PyObject_GC_IS_TRACKED(op)); in _PyTrash_thread_deposit_object() 2792 _PyObject_ASSERT(op, Py_REFCNT(op) == 0); in _PyTrash_thread_deposit_object() 2837 _PyObject_ASSERT(op, Py_REFCNT(op) == 0); in _PyTrash_thread_destroy_chain()
|
D | typeobject.c | 2234 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in subtype_dealloc() 3329 _PyObject_ASSERT((PyObject *)type, in subtype_getweakref() 3332 _PyObject_ASSERT((PyObject *)type, in subtype_getweakref() 5709 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in type_dealloc() 5931 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in type_clear() 7698 _PyObject_ASSERT((PyObject *)type, type->tp_descr_get != NULL); in type_ready_pre_checks() 7701 _PyObject_ASSERT((PyObject *)type, type->tp_vectorcall_offset > 0); in type_ready_pre_checks() 7702 _PyObject_ASSERT((PyObject *)type, type->tp_call != NULL); in type_ready_pre_checks() 7707 _PyObject_ASSERT((PyObject *)type, (type->tp_flags & COLLECTION_FLAGS) != COLLECTION_FLAGS); in type_ready_pre_checks() 8174 _PyObject_ASSERT((PyObject *)type, !is_readying(type)); in type_ready()
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 397 #define _PyObject_ASSERT(obj, expr) \ macro
|
/external/python/cpython3/Doc/using/ |
D | configure.rst | 685 Enable ``assert(...)`` and ``_PyObject_ASSERT(...)`` assertions: don't set 741 ``_PyObject_ASSERT(...);``.
|