* gc.c (check_rvalue_consistency): do not need to check is_sweeping().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-03-18 08:12:44 +00:00
Родитель 5b91f08aaa
Коммит 3857777781
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Wed Mar 18 17:10:01 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (check_rvalue_consistency): do not need to check is_sweeping().
Wed Mar 18 14:13:22 2015 Koichi Sasada <ko1@atdot.net>
* benchmark/bm_vm1_gc_wb_ary.rb: run GC to finish "marking" phase.

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

@ -992,7 +992,7 @@ check_rvalue_consistency(const VALUE obj)
if (!is_full_marking(objspace) && long_lived_bit && age != RVALUE_OLD_AGE && !wb_unprotected_bit) {
rb_bug("check_rvalue_consistency: %s is long lived, but not old (age: %d) and not WB unprotected.\n", obj_info(obj), age);
}
if (!is_marking(objspace) && !is_sweeping(objspace) && long_lived_bit && RVALUE_MARK_BITMAP(obj) == 0) {
if (!is_marking(objspace) && long_lived_bit && RVALUE_MARK_BITMAP(obj) == 0) {
rb_bug("check_rvalue_consistency: %s is long lived, but is not marked while !gc.", obj_info(obj));
}