Commit ef7a27e9 authored by Niels Möller's avatar Niels Möller

* src/gc.c (gc_kill): Less debug output.

Rev: src/gc.c:1.14
parent 63fe1115
......@@ -170,15 +170,19 @@ void gc_kill(struct lsh_object *o)
o->dead = 1;
#if 0
debug("gc_kill: Killing object of type %z.\n",
o->isa ? o->isa->name : "UNKNOWN");
#endif
if (o == all_objects)
{
struct lsh_class *class;
#if 0
debug("gc_kill: Deallocating immediately.\n");
#endif
for (class = o->isa; class; class = class->super_class)
if (class->free_instance)
FREE_INSTANCE(class, o);
......@@ -188,8 +192,12 @@ void gc_kill(struct lsh_object *o)
lsh_object_free(o);
}
else
debug("gc_kill: Deferring deallocation to gc_sweep()\n");
{
#if 0
debug("gc_kill: Deferring deallocation to gc_sweep()\n");
#endif
}
sanity_check_object_list();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment