[Stackless-checkins] CVS: slpdev/src/2.3/dev/Stackless/module stacklessmodule.c, 1.169, 1.170
Christian Tismer
tismer at centera.de
Sun May 2 03:54:35 CEST 2004
Update of /home/cvs/slpdev/src/2.3/dev/Stackless/module
In directory centera.de:/tmp/cvs-serv2636/dev/Stackless/module
Modified Files:
stacklessmodule.c
Log Message:
_get_all_objects works for all versions in our scope
Index: stacklessmodule.c
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/dev/Stackless/module/stacklessmodule.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -C2 -d -r1.169 -r1.170
*** stacklessmodule.c 1 May 2004 20:24:10 -0000 1.169
--- stacklessmodule.c 2 May 2004 01:54:33 -0000 1.170
***************
*** 671,675 ****
/* finding refcount problems */
! #if defined(Py_TRACE_REFS) && defined(PyAPI_23)
static char _get_refinfo__doc__[] =
--- 671,675 ----
/* finding refcount problems */
! #if defined(Py_TRACE_REFS)
static char _get_refinfo__doc__[] =
***************
*** 677,689 ****
"refcount, ref_total, computed total)";
- extern PyObject * _Py_RefChain;
static PyObject *
_get_refinfo(PyObject *self)
{
PyObject *op, *max=Py_None;
! PyObject *refchain = _Py_RefChain;
int ref_total = _Py_RefTotal;
int computed_total = 0;
for (op = refchain->_ob_next; op != refchain; op = op->_ob_next) {
if (op->ob_refcnt > max->ob_refcnt)
--- 677,691 ----
"refcount, ref_total, computed total)";
static PyObject *
_get_refinfo(PyObject *self)
{
PyObject *op, *max=Py_None;
! PyObject *refchain = Py_None;
int ref_total = _Py_RefTotal;
int computed_total = 0;
+ while (refchain->ob_type != NULL)
+ refchain = refchain->_ob_next;
+
for (op = refchain->_ob_next; op != refchain; op = op->_ob_next) {
if (op->ob_refcnt > max->ob_refcnt)
***************
*** 752,756 ****
_peek__doc__},
#endif
! #if defined(Py_TRACE_REFS) && defined(PyAPI_23)
{"_get_refinfo", (PCF)_get_refinfo, METH_NOARGS,
_get_refinfo__doc__},
--- 754,758 ----
_peek__doc__},
#endif
! #if defined(Py_TRACE_REFS)
{"_get_refinfo", (PCF)_get_refinfo, METH_NOARGS,
_get_refinfo__doc__},
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list