Skip to content

Commit b94df81

Browse files
committed
RUBY_TYPED_WB_PROTECTED should be specified with write barrier protection on this object.
tagomoris#7 RUBY_TYPED_FREE_IMMEDIATELY can be added because namespace_entry_free does no IO nor things to block.
1 parent 574127b commit b94df81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

namespace.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ rb_namespace_entry_mark(void *ptr)
462462
}
463463

464464
#define namespace_entry_free RUBY_TYPED_DEFAULT_FREE
465-
// TODO: free all objects in rb_namespace_t, including st_table members?
466465

467466
static size_t
468467
namespace_entry_memsize(const void *ptr)
@@ -478,7 +477,7 @@ const rb_data_type_t rb_namespace_data_type = {
478477
namespace_entry_memsize,
479478
rb_namespace_gc_update_references,
480479
},
481-
0, 0, RUBY_TYPED_WB_PROTECTED
480+
0, 0, RUBY_TYPED_FREE_IMMEDIATELY // TODO: enable RUBY_TYPED_WB_PROTECTED when inserting write barriers
482481
};
483482

484483
VALUE

0 commit comments

Comments
 (0)