mrubyを超漢字で動作させる
Revisão | fc4f0b9be7133dc901d02bb938e90ffd1487e50a (tree) |
---|---|
Hora | 2015-10-20 17:06:54 |
Autor | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
@@ -1153,7 +1153,7 @@ mrb_field_write_barrier(mrb_state *mrb, struct RBasic *obj, struct RBasic *value | ||
1153 | 1153 | if (!is_black(obj)) return; |
1154 | 1154 | if (!is_white(value)) return; |
1155 | 1155 | |
1156 | - mrb_assert(!is_dead(mrb, value) && !is_dead(mrb, obj)); | |
1156 | + mrb_assert(mrb->gc_state == GC_STATE_MARK || (!is_dead(mrb, value) && !is_dead(mrb, obj))); | |
1157 | 1157 | mrb_assert(is_generational(mrb) || mrb->gc_state != GC_STATE_ROOT); |
1158 | 1158 | |
1159 | 1159 | if (is_generational(mrb) || mrb->gc_state == GC_STATE_MARK) { |