diff options
author | Peter Zhu <[email protected]> | 2021-11-05 09:52:07 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2021-11-08 14:05:54 -0500 |
commit | 309406484b98fe0aea55016d8f5971b4e6b91761 (patch) | |
tree | 10b3634821772ff6cf7b929597a00c369b0c639d /include/ruby | |
parent | aeae6e2842e1702dfb89b8ae69b48c4f5f64c662 (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/ruby')
-rw-r--r-- | include/ruby/internal/intern/gc.h | 2 |
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); /** |