diff options
author | Satoshi Tagomori <[email protected]> | 2025-05-11 22:38:02 +0900 |
---|---|---|
committer | Satoshi Tagomori <[email protected]> | 2025-05-11 23:32:50 +0900 |
commit | b94df81be2955f3b00bac8927da0a29e6951f2e4 () | |
tree | c9b47832cd5f9f203cf7cb83b3fc86161fcf7799 /namespace.c | |
parent | 574127b0db7ac757ea55cee4e3e61d5a7a5e06c6 (diff) |
RUBY_TYPED_WB_PROTECTED should be specified with write barrier protection on this object.
https://.com/tagomoris/ruby/pull/7 RUBY_TYPED_FREE_IMMEDIATELY can be added because namespace_entry_free does no IO nor things to block.
-rw-r--r-- | namespace.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -462,7 +462,6 @@ rb_namespace_entry_mark(void *ptr) } #define namespace_entry_free RUBY_TYPED_DEFAULT_FREE -// TODO: free all objects in rb_namespace_t, including st_table members? static size_t namespace_entry_memsize(const void *ptr) @@ -478,7 +477,7 @@ const rb_data_type_t rb_namespace_data_type = { namespace_entry_memsize, rb_namespace_gc_update_references, }, - 0, 0, RUBY_TYPED_WB_PROTECTED }; VALUE |