mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
new debugger symbol names
This commit is contained in:
parent
7f3f2c1819
commit
441e4ab802
3 changed files with 8 additions and 8 deletions
|
@ -347,8 +347,8 @@ instance_dealloc(inst)
|
||||||
object *del;
|
object *del;
|
||||||
/* Call the __del__ method if it exists. First temporarily
|
/* Call the __del__ method if it exists. First temporarily
|
||||||
revive the object and save the current exception, if any. */
|
revive the object and save the current exception, if any. */
|
||||||
#ifdef TRACE_REFS
|
#ifdef Py_TRACE_REFS
|
||||||
/* much too complicated if TRACE_REFS defined */
|
/* much too complicated if Py_TRACE_REFS defined */
|
||||||
extern long ref_total;
|
extern long ref_total;
|
||||||
inst->ob_type = &Instancetype;
|
inst->ob_type = &Instancetype;
|
||||||
NEWREF(inst);
|
NEWREF(inst);
|
||||||
|
@ -356,9 +356,9 @@ instance_dealloc(inst)
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
inst->ob_type->tp_alloc--; /* ditto */
|
inst->ob_type->tp_alloc--; /* ditto */
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else /* !Py_TRACE_REFS */
|
||||||
INCREF(inst);
|
INCREF(inst);
|
||||||
#endif /* TRACE_REFS */
|
#endif /* !Py_TRACE_REFS */
|
||||||
err_fetch(&error_type, &error_value, &error_traceback);
|
err_fetch(&error_type, &error_value, &error_traceback);
|
||||||
if ((del = instance_getattr1(inst, "__del__")) != NULL) {
|
if ((del = instance_getattr1(inst, "__del__")) != NULL) {
|
||||||
object *res = call_object(del, (object *)NULL);
|
object *res = call_object(del, (object *)NULL);
|
||||||
|
@ -375,13 +375,13 @@ instance_dealloc(inst)
|
||||||
#endif
|
#endif
|
||||||
return; /* __del__ added a reference; don't delete now */
|
return; /* __del__ added a reference; don't delete now */
|
||||||
}
|
}
|
||||||
#ifdef TRACE_REFS
|
#ifdef Py_TRACE_REFS
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
inst->ob_type->tp_free--; /* compensate for increment in UNREF */
|
inst->ob_type->tp_free--; /* compensate for increment in UNREF */
|
||||||
#endif
|
#endif
|
||||||
UNREF(inst);
|
UNREF(inst);
|
||||||
inst->ob_type = NULL;
|
inst->ob_type = NULL;
|
||||||
#endif /* TRACE_REFS */
|
#endif /* Py_TRACE_REFS */
|
||||||
DECREF(inst->in_class);
|
DECREF(inst->in_class);
|
||||||
XDECREF(inst->in_dict);
|
XDECREF(inst->in_dict);
|
||||||
free((ANY *)inst);
|
free((ANY *)inst);
|
||||||
|
|
|
@ -507,7 +507,7 @@ resizestring(pv, newsize)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/* XXX UNREF/NEWREF interface should be more symmetrical */
|
/* XXX UNREF/NEWREF interface should be more symmetrical */
|
||||||
#ifdef REF_DEBUG
|
#ifdef Py_REF_DEBUG
|
||||||
--_Py_RefTotal;
|
--_Py_RefTotal;
|
||||||
#endif
|
#endif
|
||||||
UNREF(v);
|
UNREF(v);
|
||||||
|
|
|
@ -418,7 +418,7 @@ resizetuple(pv, newsize, last_is_sticky)
|
||||||
if (sizediff == 0)
|
if (sizediff == 0)
|
||||||
return 0;
|
return 0;
|
||||||
/* XXX UNREF/NEWREF interface should be more symmetrical */
|
/* XXX UNREF/NEWREF interface should be more symmetrical */
|
||||||
#ifdef REF_DEBUG
|
#ifdef Py_REF_DEBUG
|
||||||
--_Py_RefTotal;
|
--_Py_RefTotal;
|
||||||
#endif
|
#endif
|
||||||
UNREF(v);
|
UNREF(v);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue