Skip to content
Snippets Groups Projects
Commit 337fe62c authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Hide fake objects completely for the gc. Probably fixes [bug 90].

Rev: src/object.c:1.149
parent e00cc8de
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\*/ \*/
/**/ /**/
#include "global.h" #include "global.h"
RCSID("$Id: object.c,v 1.148 2000/09/14 19:58:43 mast Exp $"); RCSID("$Id: object.c,v 1.149 2000/09/29 15:48:04 mast Exp $");
#include "object.h" #include "object.h"
#include "dynamic_buffer.h" #include "dynamic_buffer.h"
#include "interpret.h" #include "interpret.h"
...@@ -739,10 +739,8 @@ PMOD_EXPORT void schedule_really_free_object(struct object *o) ...@@ -739,10 +739,8 @@ PMOD_EXPORT void schedule_really_free_object(struct object *o)
fprintf(stderr, "| Freeing storage for %p.\n", o); fprintf(stderr, "| Freeing storage for %p.\n", o);
#endif #endif
if (o->next == o) if (o->next != o)
/* It's a fake object which isn't counted by the gc, so /* As far as the gc is concerned, the fake objects doesn't exist. */
* counteract the num_objects-- done by GC_FREE. */
num_objects++;
GC_FREE(o); GC_FREE(o);
FREE_PROT(o); FREE_PROT(o);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment