Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
ef7a27e9
Commit
ef7a27e9
authored
Oct 31, 2000
by
Niels Möller
Browse files
* src/gc.c (gc_kill): Less debug output.
Rev: src/gc.c:1.14
parent
63fe1115
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gc.c
View file @
ef7a27e9
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment