summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-26 12:37:11 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-26 12:37:11 +0000
commita20a14727f4c15fad7a07b8bd7c39074895aa845 (patch)
tree267bf412e9975868fe4922063ae7b463c940af12 /marshal.c
parentea54c59a8e7daf3f0a05eead6415f39c52e3a0fc (diff)
downloadruby-a20a14727f4c15fad7a07b8bd7c39074895aa845.tar.gz
* hash.c, include/ruby/ruby.h: support WB protected hash.
* constify RHash::ifnone and make new macro RHASH_SET_IFNONE(). * insert write barrier for st_update(). * include/ruby/intern.h: declare rb_hash_set_ifnone(hash, ifnone). * marshal.c (r_object0): use RHASH_SET_IFNONE(). * ext/openssl/ossl_x509name.c (Init_ossl_x509name): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index 464ef1596f..ef44fb24d0 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1725,7 +1725,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
}
arg->readable += 2;
if (type == TYPE_HASH_DEF) {
- RHASH_IFNONE(v) = r_object(arg);
+ RHASH_SET_IFNONE(v, r_object(arg));
}
v = r_leave(v, arg);
}