[Python-checkins] python/dist/src/Python pythonrun.c,2.158,2.159

tim_one@sourceforge.net tim_one@sourceforge.net
2002年4月13日 01:29:17 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv1392/python/Python
Modified Files:
	pythonrun.c 
Log Message:
_PyObject_DebugDumpStats: renamed to _PyObject_DebugMallocStats.
Added code to call this when PYMALLOC_DEBUG is enabled, and envar
PYTHONMALLOCSTATS is set, whenever a new arena is obtained and once
late in the Python shutdown process.
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.158
retrieving revision 2.159
diff -C2 -d -r2.158 -r2.159
*** pythonrun.c	8 Apr 2002 08:19:36 -0000	2.158
--- pythonrun.c	13 Apr 2002 08:29:14 -0000	2.159
***************
*** 277,280 ****
--- 277,285 ----
 	PyGrammar_RemoveAccelerators(&_PyParser_Grammar);
 
+ #ifdef PYMALLOC_DEBUG
+ 	if (Py_GETENV("PYTHONMALLOCSTATS"))
+ 		_PyObject_DebugMallocStats();
+ #endif
+ 
 	call_ll_exitfuncs();
 

AltStyle によって変換されたページ (->オリジナル) /