From 5d9fd674c9ceefd6baffdd05d33c5b60a7c64e42 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Wed, 10 Apr 2024 14:57:14 +0900 Subject: [PATCH] put empty `rb_gc_force_recycle()` and declare it will be removed soon. ddtrace is still referes the API and build was failed. See https://github.com/DataDog/dd-trace-rb/pull/3578 Maybe threre are only few users of this C-API now so we can remove it soon. --- include/ruby/internal/gc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ruby/internal/gc.h b/include/ruby/internal/gc.h index f36ec1590e..462f416af2 100644 --- a/include/ruby/internal/gc.h +++ b/include/ruby/internal/gc.h @@ -823,4 +823,7 @@ rb_obj_write( return a; } +RBIMPL_ATTR_DEPRECATED(("Will be removed soon")) +static inline void rb_gc_force_recycle(VALUE obj){} + #endif /* RBIMPL_GC_H */