aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-31 08:49:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-31 08:49:09 +0000
commitcf74a2a1bdf0a0e216aac9dbf358a9d9d32cdb87 (patch)
treee8be056ffbe7c997d0f7e9fdda930827dbc0f5e7 /gc.c
parent02a64852448da4e894d4f483fae0e94962ca29a5 (diff)
downloadruby-cf74a2a1bdf0a0e216aac9dbf358a9d9d32cdb87.tar.gz
* gc.c (gc_marks_finish): fix syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54452 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 170964b957..ae77450a11 100644
--- a/gc.c
+++ b/gc.c
@@ -5383,8 +5383,8 @@ gc_marks_finish(rb_objspace_t *objspace)
/* check free_min */
if (min_free_slots < gc_params.heap_free_slots) min_free_slots = gc_params.heap_free_slots;
- if (sweep_slots < min_free_slots) {
#if USE_RGENGC
+ if (sweep_slots < min_free_slots) {
if (!full_marking) {
if (objspace->profile.count - objspace->rgengc.last_major_gc < RVALUE_OLD_AGE) {
full_marking = TRUE;
@@ -5426,11 +5426,12 @@ gc_marks_finish(rb_objspace_t *objspace)
objspace->rgengc.need_major_gc ? "major" : "minor");
#else /* USE_RGENGC */
+ if (sweep_slots < min_free_slots) {
gc_report(1, objspace, "gc_marks_finish: heap_set_increment!!\n");
heap_set_increment(objspace, heap_extend_pages(objspace, sweep_slot, total_slot));
heap_increment(objspace, heap);
-#endif
}
+#endif
}
gc_event_hook(objspace, RUBY_INTERNAL_EVENT_GC_END_MARK, 0);