Skip to content

Commit

Permalink
Make rb_objspace_data_type_memsize private
Browse files Browse the repository at this point in the history
rb_objspace_data_type_memsize is not used in the objspace module, so we
can make it private.
  • Loading branch information
peterzhu2118 committed Feb 26, 2024
1 parent 81dded1 commit 7538703
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion gc.c
Expand Up @@ -3030,7 +3030,7 @@ rb_data_typed_object_zalloc(VALUE klass, size_t size, const rb_data_type_t *type
return obj;
}

size_t
static size_t
rb_objspace_data_type_memsize(VALUE obj)
{
size_t size = 0;
Expand Down
1 change: 0 additions & 1 deletion internal/gc.h
Expand Up @@ -260,7 +260,6 @@ void rb_gc_ref_update_table_values_only(st_table *tbl);

RUBY_SYMBOL_EXPORT_BEGIN
/* exports for objspace module */
size_t rb_objspace_data_type_memsize(VALUE obj);
void rb_objspace_reachable_objects_from(VALUE obj, void (func)(VALUE, void *), void *data);
void rb_objspace_reachable_objects_from_root(void (func)(const char *category, VALUE, void *), void *data);
int rb_objspace_markable_object_p(VALUE obj);
Expand Down

0 comments on commit 7538703

Please sign in to comment.