pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:9132: Inside #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP) and #if defined(PIKE_DEBUG)
   Pike_fatal("gc_check_type: "    "Unhandled type-node: %d\n", t->type);    break;   #endif /* PIKE_DEBUG */    }    } GC_LEAVE;   }      void gc_check_all_types (void)   { -  unsigned INT32 e; +  size_t e;    for(e=0;e<=pike_type_hash_size;e++)    {    struct pike_type *t; -  for(t = pike_type_hash[e]; t; t=t->next) gc_check_type (t); +  for(t = pike_type_hash[e]; t; t=t->next) { +  if (gc_keep_markers) { +  /* Make sure that leaked types also have markers at cleanup... */ +  (void)pmod_get_marker(t);    } -  +  gc_check_type(t);    } -  +  } + }      #endif /* PIKE_DEBUG || DO_PIKE_CLEANUP */