mirror of
https://github.com/python/cpython
synced 2026-11-23 00:04:08 +03:00
* bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612) bpo-36389, bpo-38376: The _PyObject_CheckConsistency() function is now also available in release mode. For example, it can be used to debug a crash in the visit_decref() function of the GC. Modify the following functions to also work in release mode: * _PyDict_CheckConsistency() * _PyObject_CheckConsistency() * _PyType_CheckConsistency() * _PyUnicode_CheckConsistency() Other changes: * _PyMem_IsPtrFreed(ptr) now also returns 1 if ptr is NULL (equals to 0). * _PyBytesWriter_CheckConsistency() now returns 1 and is only used with assert(). * Reorder _PyObject_Dump() to write safe fields first, and only attempt to render repr() at the end. (cherry picked from commit |
||
|---|---|---|
| .. | ||
| pycore_accu.h | ||
| pycore_atomic.h | ||
| pycore_ceval.h | ||
| pycore_code.h | ||
| pycore_condvar.h | ||
| pycore_context.h | ||
| pycore_fileutils.h | ||
| pycore_getopt.h | ||
| pycore_gil.h | ||
| pycore_hamt.h | ||
| pycore_initconfig.h | ||
| pycore_object.h | ||
| pycore_pathconfig.h | ||
| pycore_pyerrors.h | ||
| pycore_pyhash.h | ||
| pycore_pylifecycle.h | ||
| pycore_pymem.h | ||
| pycore_pystate.h | ||
| pycore_traceback.h | ||
| pycore_tupleobject.h | ||
| pycore_warnings.h | ||