Branch: Tag:

2000-04-15

2000-04-15 05:05:28 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more and better debug, some cleanup in gc()

Rev: src/dmalloc.h:1.25
Rev: src/gc.c:1.65
Rev: src/gc.h:1.29
Rev: src/interpreter.h:1.37
Rev: src/las.c:1.175
Rev: src/main.c:1.89
Rev: src/mapping.c:1.73
Rev: src/object.c:1.109
Rev: src/pike_macros.h:1.15
Rev: src/pike_memory.c:1.65
Rev: src/program.c:1.226
Rev: src/stralloc.c:1.82
Rev: src/svalue.h:1.51
Rev: src/threads.c:1.119
Rev: src/threads.h:1.81

1:   /* -  * $Id: dmalloc.h,v 1.24 2000/04/08 02:01:08 hubbe Exp $ +  * $Id: dmalloc.h,v 1.25 2000/04/15 05:05:28 hubbe Exp $    */      extern char *debug_xalloc(long);
10: Inside #if defined(DEBUG_MALLOC)
  struct memhdr;      void dump_memhdr_locations(struct memhdr *from, -  struct memhdr *notfrom); +  struct memhdr *notfrom, +  int indent);   struct memhdr *alloc_memhdr(void);   void really_free_memhdr(struct memhdr *mh);   void add_marks_to_memhdr(struct memhdr *to,void *ptr);
53:   #define debug_malloc_touch(X) debug_malloc_update_location((X),DMALLOC_LOCATION())   #define debug_malloc_pass(X) debug_malloc_update_location((X),DMALLOC_LOCATION())   #define xalloc(X) ((char *)debug_malloc_pass(debug_xalloc(X))) - void debug_malloc_dump_references(void *x); + void debug_malloc_dump_references(void *x, int indent, int depth, int flags);   #define dmalloc_touch(TYPE,X) ((TYPE)debug_malloc_update_location((X),DMALLOC_LOCATION()))   #define dmalloc_touch_svalue(X) do { struct svalue *_tmp = (X); if ((X)->type <= MAX_REF_TYPE) { debug_malloc_touch(_tmp->u.refs); } } while(0)   
70:   void dmalloc_set_mmap(void *ptr, struct memory_map *m);   void dmalloc_set_mmap_template(void *ptr, struct memory_map *m);   void dmalloc_set_mmap_from_template(void *p, void *p2); - void dmalloc_describe_location(void *p, int offset); + void dmalloc_describe_location(void *p, int offset, int indent);   struct memory_map *dmalloc_alloc_mmap(char *name, int line);   void dmalloc_add_mmap_entry(struct memory_map *m,    char *name,
90:   #define DMALLOC_LINE_ARGS   #define DMALLOC_POS   #define DMALLOC_PROXY_ARGS - #define debug_malloc_dump_references(X) + #define debug_malloc_dump_references(X,x,y,z)   #define xalloc debug_xalloc   #define dbm_main main   #define DO_IF_DMALLOC(X)