summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-06 06:26:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-06 06:26:21 +0000
commit707b0e65bddfb2a87212733e81de3320bba9c219 (patch)
tree4d8e7ebb6e5c99f49dd684f5ebd7fa2d28a204dc /gc.c
parent3ae723875be3bb418054dedf0a7d8528956a0736 (diff)
* gc.c (gc_mark_children): ignores T_ZOMBIE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index b38d0b1b49..c1afba7a32 100644
--- a/gc.c
+++ b/gc.c
@@ -80,6 +80,8 @@ void *alloca ();
#endif
#endif
+#define T_ZOMBIE 0x3a
+
static unsigned long malloc_increase = 0;
static unsigned long malloc_limit = GC_MALLOC_LIMIT;
static void run_final();
@@ -1044,6 +1046,7 @@ gc_mark_children(ptr, lev)
case T_FLOAT:
case T_BIGNUM:
case T_BLKTAG:
+ case T_ZOMBIE:
break;
case T_MATCH:
@@ -1131,8 +1134,6 @@ free_unused_heaps()
}
}
-#define T_ZOMBIE 0x3a
-
void rb_gc_abort_threads(void);
static void