Skip to content

Commit

Permalink
Make rb_define_finalizer_no_check private
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Feb 28, 2024
1 parent a5bfc25 commit 5481dbe
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 @@ -3905,7 +3905,7 @@ should_be_finalizable(VALUE obj)
rb_check_frozen(obj);
}

VALUE
static VALUE
rb_define_finalizer_no_check(VALUE obj, VALUE block)
{
rb_objspace_t *objspace = &rb_objspace;
Expand Down
1 change: 0 additions & 1 deletion internal/gc.h
Expand Up @@ -242,7 +242,6 @@ size_t rb_gc_obj_slot_size(VALUE obj);
bool rb_gc_size_allocatable_p(size_t size);
int rb_objspace_garbage_object_p(VALUE obj);
bool rb_gc_is_ptr_to_obj(const void *ptr);
VALUE rb_define_finalizer_no_check(VALUE obj, VALUE block);

void rb_gc_mark_and_move(VALUE *ptr);

Expand Down

0 comments on commit 5481dbe

Please sign in to comment.