[Python-checkins] python/dist/src/Include object.h,2.116,2.117

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 23 Mar 2003 09:52:30 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv2910/Include

Modified Files:
	object.h 
Log Message:
Improved new Py_TRACE_REFS gimmicks.
Arranged that all the objects exposed by __builtin__ appear in the list
of all objects.  I basically peed away two days tracking down a mystery
leak in sys.gettotalrefcount() in a ZODB app (== tons of code), because
the object leaking the references didn't appear in the sys.getobjects(0)
list.  The object happened to be False.  Now False is in the list, along
with other popular & previously missing leak candidates (like None).
Alas, we still don't have a choke point covering *all* Python objects,
so the list of all objects may still be incomplete.


Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.116
retrieving revision 2.117
diff -C2 -d -r2.116 -r2.117
*** object.h	23 Mar 2003 03:33:13 -0000	2.116
--- object.h	23 Mar 2003 17:52:28 -0000	2.117
***************
*** 583,587 ****
  PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
  PyAPI_FUNC(void) _Py_PrintReferences(FILE *);
! PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *);
  
  #else
--- 583,587 ----
  PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
  PyAPI_FUNC(void) _Py_PrintReferences(FILE *);
! PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
  
  #else