mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Ignore MRB_GC_RED objects in mrb_field_write_barrier()
This commit is contained in:
@@ -1376,6 +1376,7 @@ mrb_field_write_barrier(mrb_state *mrb, struct RBasic *obj, struct RBasic *value
|
||||
|
||||
if (!is_black(obj)) return;
|
||||
if (!is_white(value)) return;
|
||||
if (is_red(value)) return;
|
||||
|
||||
mrb_assert(gc->state == MRB_GC_STATE_MARK || (!is_dead(gc, value) && !is_dead(gc, obj)));
|
||||
mrb_assert(is_generational(gc) || gc->state != MRB_GC_STATE_ROOT);
|
||||
|
||||
Reference in New Issue
Block a user