summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-11-05 09:52:07 -0400
committerPeter Zhu <peter@peterzhu.ca>2021-11-08 14:05:54 -0500
commit309406484b98fe0aea55016d8f5971b4e6b91761 (patch)
tree10b3634821772ff6cf7b929597a00c369b0c639d /include
parentaeae6e2842e1702dfb89b8ae69b48c4f5f64c662 (diff)
[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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4363
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/intern/gc.h2
1 files changed, 2 insertions, 0 deletions
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);
/**