2004-04-18
2004-04-18 02:16:06 by Martin Stjernholm <mast@lysator.liu.se>
-
4fab5f45f59af41f8a04567aac6d0455fd16b5b8
(6 lines)
(+4/-2)
[
Show
| Annotate
]
Branch: 7.9
Improved debug during cleanup: If there are internal refs that the gc don't
know about it will free them during the leak report. When they then are
freed from their real places later on, they will run out of refs. Therefore
the debug now prints all locations the leaked objects are freed from.
Rev: src/array.h:1.59
Rev: src/dmalloc.h:1.50
Rev: src/gc.c:1.253
Rev: src/gc.h:1.112
Rev: src/main.c:1.200
Rev: src/mapping.h:1.54
Rev: src/multiset.h:1.34
Rev: src/object.h:1.82
Rev: src/program.c:1.563
Rev: src/program.h:1.202
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: program.c,v 1.562 2004/04/17 15:18:52 marcus Exp $
+ || $Id: program.c,v 1.563 2004/04/18 02:16:06 mast Exp $
*/
#include "global.h"
- RCSID("$Id: program.c,v 1.562 2004/04/17 15:18:52 marcus Exp $");
+ RCSID("$Id: program.c,v 1.563 2004/04/18 02:16:06 mast Exp $");
#include "program.h"
#include "object.h"
#include "dynamic_buffer.h"
2340: Inside #if defined(PIKE_DEBUG)
#ifdef PIKE_DEBUG
if (p->refs) {
#ifdef DEBUG_MALLOC
+ fprintf (stderr, "Program to be freed still got %d references:\n", p->refs);
describe_something(p, T_PROGRAM, 0,2,0, NULL);
#endif
Pike_fatal("Program to be freed still got %d references.\n", p->refs);