git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-06-21 12:36:06 +00:00
Родитель 913e65448d
Коммит 15c4b821a1
1 изменённых файлов: 2 добавлений и 2 удалений

4
gc.c
Просмотреть файл

@ -3949,7 +3949,7 @@ garbage_collect_body(rb_objspace_t *objspace, int full_mark, int immediate_sweep
#if USE_RGENGC #if USE_RGENGC
else { else {
if (full_mark) if (full_mark)
reason |= GPR_FLAG_MAJOR_BY_NOFREE; reason |= GPR_FLAG_MAJOR_BY_NOFREE;
if (objspace->rgengc.need_major_gc) { if (objspace->rgengc.need_major_gc) {
objspace->rgengc.need_major_gc = FALSE; objspace->rgengc.need_major_gc = FALSE;
@ -3959,7 +3959,7 @@ garbage_collect_body(rb_objspace_t *objspace, int full_mark, int immediate_sweep
reason |= GPR_FLAG_MAJOR_BY_SHADY; reason |= GPR_FLAG_MAJOR_BY_SHADY;
if (objspace->rgengc.oldgen_object_count > objspace->rgengc.oldgen_object_limit) if (objspace->rgengc.oldgen_object_count > objspace->rgengc.oldgen_object_limit)
reason |= GPR_FLAG_MAJOR_BY_OLDGEN; reason |= GPR_FLAG_MAJOR_BY_OLDGEN;
if (!GC_ENABLE_LAZY_SWEEP || objspace->flags.dont_lazy_sweep) { if (!GC_ENABLE_LAZY_SWEEP || objspace->flags.dont_lazy_sweep) {
immediate_sweep = TRUE; immediate_sweep = TRUE;
} }