summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-22 01:10:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-22 01:10:46 +0000
commit4132ac3762c96d1180df14ca34848e1a9e7569ea (patch)
treeaa26ea6bc877018b37c7a7cde746952dfcb6047b /gc.c
parentc7a56bd6d0b49d6311821991f9cc7d3499e92891 (diff)
* gc.c (gc_slot_sweep): need to add empty RVALUE as freeobj.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 6be650f840..5cc1f72af0 100644
--- a/gc.c
+++ b/gc.c
@@ -2269,6 +2269,7 @@ gc_slot_sweep(rb_objspace_t *objspace, struct heap_slot *sweep_slot)
}
}
else {
+ heap_slot_add_freeobj(objspace, sweep_slot, (VALUE)p);
empty_num++;
}
}