Branch: Tag:

2000-03-24

2000-03-24 01:24:52 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more dmalloc...

Rev: src/block_alloc.h:1.18
Rev: src/builtin_functions.c:1.246
Rev: src/errors.h:1.9
Rev: src/interpret.c:1.137
Rev: src/interpret.h:1.38
Rev: src/interpreter.h:1.36
Rev: src/object.c:1.95
Rev: src/operators.c:1.87
Rev: src/pike_memory.c:1.59
Rev: src/program.c:1.214
Rev: src/security.c:1.25
Rev: src/signal_handler.c:1.168
Rev: src/threads.c:1.113
Rev: src/threads.h:1.75

1: - /* $Id: block_alloc.h,v 1.17 2000/03/22 00:55:07 hubbe Exp $ */ + /* $Id: block_alloc.h,v 1.18 2000/03/24 01:24:49 hubbe Exp $ */   #undef PRE_INIT_BLOCK   #undef INIT_BLOCK   #undef EXIT_BLOCK
51:    \    tmp=PIKE_CONCAT3(free_,DATA,s); \    PIKE_CONCAT3(free_,DATA,s)=tmp->BLOCK_ALLOC_NEXT; \ -  DO_IF_DMALLOC( dmalloc_register(tmp,0, DMALLOC_LOCATION()); ) \ +  DO_IF_DMALLOC( dmalloc_register(tmp,sizeof(struct DATA), DMALLOC_LOCATION()); )\    INIT_BLOCK(tmp); \    return tmp; \   } \
68:   void PIKE_CONCAT3(free_all_,DATA,_blocks)(void) \   { \    struct PIKE_CONCAT(DATA,_block) *tmp; \ +  DO_IF_DMALLOC( \ +  for(tmp=PIKE_CONCAT(DATA,_blocks);tmp;tmp=tmp->next) \ +  { \ +  int tmp2; \ +  extern void dmalloc_check_block_free(void *p); \ +  for(tmp2=0;tmp2<BSIZE;tmp2++) \ +  dmalloc_check_block_free(tmp->x+tmp2); \ +  } \ +  ) \    while((tmp=PIKE_CONCAT(DATA,_blocks))) \    { \    PIKE_CONCAT(DATA,_blocks)=tmp->next; \