Branch: Tag:

2000-03-07

2000-03-07 21:23:42 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

dmalloc updated and optimized

Rev: src/array.c:1.62
Rev: src/dmalloc.h:1.19
Rev: src/gc.c:1.49
Rev: src/main.c:1.81
Rev: src/pike_memory.c:1.53

23:   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.61 2000/02/17 18:57:36 hubbe Exp $"); + RCSID("$Id: array.c,v 1.62 2000/03/07 21:23:41 hubbe Exp $");      struct array empty_array=   {
1958:    if(!(next=a->next))    fatal("Null pointer in array list.\n");    +  while((next=a->next) != &empty_array && a->refs == 1) +  { +  add_ref(next); +  free_program(a); +  a=next; +  } +     free_array(a);    a=next;    } while (a != & empty_array);