From 309406484b98fe0aea55016d8f5971b4e6b91761 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 5 Nov 2021 09:52:07 -0400 Subject: [Feature #18290] Deprecate rb_gc_force_recycle and remove invalidate_mark_stack_chunk This commit deprecates rb_gc_force_recycle and coverts it to a no-op function. Also removes invalidate_mark_stack_chunk since only rb_gc_force_recycle uses it. --- include/ruby/internal/intern/gc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/ruby/internal/intern/gc.h b/include/ruby/internal/intern/gc.h index d8e476b078..e7b8008729 100644 --- a/include/ruby/internal/intern/gc.h +++ b/include/ruby/internal/intern/gc.h @@ -208,7 +208,9 @@ VALUE rb_gc_location(VALUE obj); * @post `obj` could be invalidated. * @warning It is a failure to pass an object multiple times to this * function. + * @deprecated This is now a no-op function. */ +RBIMPL_ATTR_DEPRECATED(("this is now a no-op function")) void rb_gc_force_recycle(VALUE obj); /** -- cgit v1.2.3