summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-21 14:11:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-14 19:19:16 +0900
commit11d9983bc340f3cc05da3a87d5d0c63f4f6bd899 (patch)
treee5e682fdfa166d09b08e8bc2b87b34793f422601 /vm.c
parent070a990bcb81ed371fc60e3922f5329b1020aa44 (diff)
Make the value shareable deeply
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3681
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 8ced733..bc57caf 100644
--- a/vm.c
+++ b/vm.c
@@ -3179,7 +3179,7 @@ m_core_hash_merge_kwd(VALUE recv, VALUE hash, VALUE kw)
static VALUE
m_core_make_shareable(VALUE recv, VALUE obj)
{
- return rb_obj_freeze(obj);
+ return rb_ractor_make_shareable(obj);
}
static VALUE