Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 1347:a22a350d3a5d legacy-trunk
* Extended X interface: pixmap objects, colormap objects visual objects,
image objects, and lots of new methods.
* Added counting of allocations and deallocations of builtin types if
COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some
files.
* Bug fix in sorting lists.
| author | Sjoerd Mullender <sjoerd@acm.org> |
|---|---|
| date | Mon, 11 Oct 1993 12:54:31 +0000 |
| parents | cd397266dc1c |
| children | 7c3245c18677 |
line wrap: on
line diff
--- a/Python/pythonrun.c Mon Oct 11 12:39:15 1993 +0000 +++ b/Python/pythonrun.c Mon Oct 11 12:54:31 1993 +0000 @@ -417,12 +417,20 @@ flushline(); } +#ifdef COUNT_ALLOCS +extern void dump_counts PROTO((void)); +#endif + void goaway(sts) int sts; { cleanup(); +#ifdef COUNT_ALLOCS + dump_counts(); +#endif + #ifdef USE_THREAD /* Other threads may still be active, so skip most of the
