summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-02-03 12:59:44 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-02-03 23:31:23 +0100
commita8000d06cc718349192acbc8343ba849ba34a67f (patch)
tree81062f6090e0e7f2970fa5e8a6fc0ce0ac5c2784 /proc.c
parentcc9d96b259f4aca151e532d53060091114b5e39b (diff)
downloadruby-a8000d06cc718349192acbc8343ba849ba34a67f.tar.gz
Mark "method" objects as protected by write barrier
All its reference are set with RB_OBJ_WRITE, so they can be marked as WB protected.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index b4f602a4cb..274c0c3177 100644
--- a/proc.c
+++ b/proc.c
@@ -1630,7 +1630,7 @@ static const rb_data_type_t method_data_type = {
bm_memsize,
bm_compact,
},
- 0, 0, RUBY_TYPED_FREE_IMMEDIATELY
+ 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
};
VALUE