Skip to content

Commit

Permalink
Use mrb_write_barrier() instead of mrb_field_write_barrier_value()
Browse files Browse the repository at this point in the history
ref #3409
  • Loading branch information
matz committed Jan 23, 2017
1 parent fdec607 commit 49fd759
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,7 @@ mrb_ary_splice(mrb_state *mrb, mrb_value ary, mrb_int head, mrb_int len, mrb_val
value_move(a->ptr + head, argv, argc);
}
}
for (i = 0; i < argc; i++) {
mrb_field_write_barrier_value(mrb, (struct RBasic*)a, argv[i]);
}
mrb_write_barrier(mrb, (struct RBasic*)a);
return ary;
}

Expand Down

0 comments on commit 49fd759

Please sign in to comment.