Skip to content

Commit

Permalink
[Bug #20981] Bring back rb_undefine_finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 25, 2024
1 parent 69bb296 commit 7df5d65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,12 @@ os_each_obj(int argc, VALUE *argv, VALUE os)

static VALUE
undefine_final(VALUE os, VALUE obj)
{
return rb_undefine_finalizer(obj);
}

VALUE
rb_undefine_finalizer(VALUE obj)
{
rb_check_frozen(obj);

Expand Down

0 comments on commit 7df5d65

Please sign in to comment.