summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-13 22:55:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-13 22:55:32 +0900
commit2b9e5e751b4d6d1a86eb25b2a4e40f9c8d19c06c (patch)
treec9a7250a105d3a8ba378fcb2a74b1eab29755536 /src/variable.c
parent170ba511f2053a11f434aa946d70fd328a26c636 (diff)
downloadmruby-2b9e5e751b4d6d1a86eb25b2a4e40f9c8d19c06c.tar.gz
mruby-2b9e5e751b4d6d1a86eb25b2a4e40f9c8d19c06c.zip
add write barrier when iv is copied
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/variable.c b/src/variable.c
index 2cd185434..a50256353 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -553,6 +553,7 @@ mrb_iv_copy(mrb_state *mrb, mrb_value dest, mrb_value src)
d->iv = 0;
}
if (s->iv) {
+ mrb_write_barrier(mrb, (struct RBasic*)d);
d->iv = iv_copy(mrb, s->iv);
}
}