Branch: Tag:

2021-08-23

2021-08-23 13:58:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

GC: Added some paranoia.

3441: Inside #if defined(DEBUG_MALLOC)
   if(debug_options & GC_RESET_DMALLOC)    reset_debug_malloc();   #endif -  gc_generation++; +  /* For paranoia reasons; avoid gc_generation #0. */ +  if (gc_generation++ == 0xffff) gc_generation = 1;    Pike_in_gc=GC_PASS_PREPARE;       if (!SAFE_IS_ZERO(&gc_pre_cb)) {