summaryrefslogtreecommitdiff
diff options
authorKoichi Sasada <[email protected]>2024-04-10 14:57:14 +0900
committerKoichi Sasada <[email protected]>2024-04-11 12:00:33 +0900
commit5d9fd674c9ceefd6baffdd05d33c5b60a7c64e42 (patch)
treeabb59e5d39772a7aa42d52cf931ee2683b5f3aaf
parent87ad5ca3ca32624cb4817504d258c9a348fd279e (diff)
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.
-rw-r--r--include/ruby/internal/gc.h3
1 files changed, 3 insertions, 0 deletions
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 */