summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-07 06:11:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-07 06:11:34 +0000
commit5093c0496e4ddbb86d5a190163f54b21a4b60e39 (patch)
tree9868ae41923a8d6dfaafdc26b95f1f42a7bee150 /gc.c
parentc67251edb478509b4abd9910e0b499a116112a3c (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index fb549f7..753d584 100644
--- a/gc.c
+++ b/gc.c
@@ -280,6 +280,7 @@ rb_newobj()
if (!freelist) rb_gc();
+ if (freelist->as.free.next && freelist->as.free.next->as.free.flag != 0) abort();
obj = (VALUE)freelist;
freelist = freelist->as.free.next;
return obj;
@@ -665,7 +666,7 @@ gc_sweep()
if (p->as.basic.flags) {
obj_free((VALUE)p);
}
- if (need_call_final && FL_TEST(p, FL_FINALIZE)) {
+ if (need_call_final && FL_TEST(p, FL_FINALIZE)) {
p->as.free.flag = FL_MARK; /* remain marked */
p->as.free.next = final_list;
final_list = p;