summaryrefslogtreecommitdiff
path: root/ext/-test-
diff options
context:
space:
mode:
authorKenta Murata <mrkn@users.noreply.github.com>2020-12-16 13:43:56 +0900
committerGitHub <noreply@github.com>2020-12-16 13:43:56 +0900
commit1bafb3cb47649037cc93fec97503c18a864e3983 (patch)
tree8ba0b9c561ec84a0eff76c816b9f6cf8a038e1a8 /ext/-test-
parent1e11c12a066036e85177104a9f8f5469063858a7 (diff)
[memory_view] Make MemoryView API Ractor-safe (#3911)
* memory_view.c: make Ractor-safe * test/ruby/test_memory_view.rb: Add test_ractor * memory_view: fix typo * memory_view.c: Use st_update in unregster_exported_object * memory_view: update dependency
Notes
Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
Diffstat (limited to 'ext/-test-')
-rw-r--r--ext/-test-/memory_view/memory_view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/-test-/memory_view/memory_view.c b/ext/-test-/memory_view/memory_view.c
index 61d02464b83..c85ba6fbfad 100644
--- a/ext/-test-/memory_view/memory_view.c
+++ b/ext/-test-/memory_view/memory_view.c
@@ -370,6 +370,7 @@ mdview_aref(VALUE obj, VALUE indices_v)
void
Init_memory_view(void)
{
+ rb_ext_ractor_safe(true);
VALUE mMemoryViewTestUtils = rb_define_module("MemoryViewTestUtils");
rb_define_module_function(mMemoryViewTestUtils, "available?", memory_view_available_p, 1);