summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-06 09:34:26 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-06 09:34:26 +0000
commit2c616737e514faed0e9a7be0e097e3091334277b (patch)
tree0937a57c1cc05947992389589c3118c6dbe7eda0 /gc.c
parentcb62399d90f6eeaf3c42ab44730c39c2c0317746 (diff)
* gc.c (garbage_collect_body): bug fix.
initialize after recording. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 84e906a0bf..419cb58f3a 100644
--- a/gc.c
+++ b/gc.c
@@ -4847,8 +4847,8 @@ garbage_collect_body(rb_objspace_t *objspace, int full_mark, int immediate_sweep
reason |= GPR_FLAG_MAJOR_BY_NOFREE;
}
if (objspace->rgengc.need_major_gc) {
- objspace->rgengc.need_major_gc = GPR_FLAG_NONE;
reason |= objspace->rgengc.need_major_gc;
+ objspace->rgengc.need_major_gc = GPR_FLAG_NONE;
}
if (objspace->rgengc.remembered_shady_object_count > objspace->rgengc.remembered_shady_object_limit) {
reason |= GPR_FLAG_MAJOR_BY_SHADY;