[Bug #20981] Bring back rb_undefine_finalizer

This commit is contained in:
Nobuyoshi Nakada 2024-12-25 22:21:37 +09:00
parent 69bb296fa6
commit 7df5d65eac
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-12-25 13:52:01 +00:00

6
gc.c
View File

@ -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);