Commit 5c2511f5 authored by Niels Möller's avatar Niels Möller
Browse files

Disabled most debug output.

Rev: src/gc.c:1.6
parent 06178bb5
...@@ -86,8 +86,10 @@ static void gc_mark(struct lsh_object *o) ...@@ -86,8 +86,10 @@ static void gc_mark(struct lsh_object *o)
{ {
struct lsh_class *class; struct lsh_class *class;
#if 0
debug("gc_mark: Marking object of class '%s'\n", debug("gc_mark: Marking object of class '%s'\n",
o->isa ? o->isa->name : "UNKNOWN"); o->isa ? o->isa->name : "UNKNOWN");
#endif
for (class = o->isa; class; class = class->super_class) for (class = o->isa; class; class = class->super_class)
{ {
...@@ -120,9 +122,10 @@ static void gc_sweep(void) ...@@ -120,9 +122,10 @@ static void gc_sweep(void)
{ {
struct lsh_class *class; struct lsh_class *class;
#if 0
debug("gc_sweep: Freeing object of class '%s'\n", debug("gc_sweep: Freeing object of class '%s'\n",
o->isa->name); o->isa->name);
#endif
for (class = o->isa; class; class = class->super_class) for (class = o->isa; class; class = class->super_class)
if (class->free_instance) if (class->free_instance)
FREE_INSTANCE(class, o); FREE_INSTANCE(class, o);
......
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