mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
gh-110481: Implement biased reference counting (gh-110764)
This commit is contained in:
parent
05f2f0ac92
commit
6dfb8fe023
29 changed files with 511 additions and 52 deletions
|
@ -19,17 +19,9 @@
|
|||
/* Uncomment this to dump debugging output when assertions fail */
|
||||
// #define INSTRUMENT_DEBUG 1
|
||||
|
||||
PyObject _PyInstrumentation_DISABLE =
|
||||
{
|
||||
.ob_refcnt = _Py_IMMORTAL_REFCNT,
|
||||
.ob_type = &PyBaseObject_Type
|
||||
};
|
||||
PyObject _PyInstrumentation_DISABLE = _PyObject_HEAD_INIT(&PyBaseObject_Type);
|
||||
|
||||
PyObject _PyInstrumentation_MISSING =
|
||||
{
|
||||
.ob_refcnt = _Py_IMMORTAL_REFCNT,
|
||||
.ob_type = &PyBaseObject_Type
|
||||
};
|
||||
PyObject _PyInstrumentation_MISSING = _PyObject_HEAD_INIT(&PyBaseObject_Type);
|
||||
|
||||
static const int8_t EVENT_FOR_OPCODE[256] = {
|
||||
[RETURN_CONST] = PY_MONITORING_EVENT_PY_RETURN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue