Skip to content

Commit

Permalink
put empty rb_gc_force_recycle()
Browse files Browse the repository at this point in the history
and declare it will be removed soon.

ddtrace is still referes the API and build was failed.
See DataDog/dd-trace-rb#3578

Maybe threre are only few users of this C-API now so we can remove
it soon.
  • Loading branch information
ko1 committed Apr 11, 2024
1 parent 39be11a commit 06fe58d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/ruby/internal/gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 06fe58d

Please sign in to comment.