From 06fe58d7f203ecd7b7db8875ca20ee4e5afe800c 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 f36ec1590e4524..462f416af21cfd 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 */