gc.c: fix compile error

* gc.c (gc_prepare_free_objects): fix compile error.  there should be
  free objects when new slot is added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-03-24 05:13:54 +00:00
parent e54daddac4
commit b4a2e268ea
1 changed files with 1 additions and 1 deletions

2
gc.c
View File

@ -2048,7 +2048,7 @@ gc_prepare_free_objects(rb_objspace_t *objspace)
if (!GC_ENABLE_LAZY_SWEEP || objspace->flags.dont_lazy_sweep) { if (!GC_ENABLE_LAZY_SWEEP || objspace->flags.dont_lazy_sweep) {
if (heaps_increment(objspace)) { if (heaps_increment(objspace)) {
return; return TRUE;
} }
else { else {
return garbage_collect(objspace); return garbage_collect(objspace);